我有任务为用户注册构建应用程序。我有3种类型的用户(配置文件)实体框架CodeFirst多种类型的用户
1. "Normal" user
2. "Company" user
3. "Company2" user - similar like 2. but with few additional fields..
所有用户共享的一些具体信息,如电子邮件和密码(登录数据),角色,注册日期等....所以,我想
USER - all kind of users with all their Login data (email and password) and UserType
USERTYPE - list of all user types (1,2,3)
USER_DETAILS - details of normal user
COMPANY_DETAILS - details of company
COMPANY2_DETAILS -details of company2
我的问题是如何将用户参考表:为“设计”类这一类只使用EF代码第一种方法的应用程序,但没有运气..
我需要表(类)与USER_DETAILS,COMPANY_DETAILS,COMPANY2_DETAILS。我希望能够让你明白我的问题:)
我的类(用户管理和配置文件)的实现类似http://codefirstmembership.codeplex.com/示例。
预先感谢您!
正是我在找的东西:)谢谢! – rjovic