我有任務爲用戶註冊構建應用程序。我有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