San*_*mar 8 asp.net asp.net-mvc entity-framework entity-framework-6 asp.net-mvc-5
凭什么要一个决定使用IdentityDbContext
与IdentityDbContext<ApplicationUser>
在ASP.NET应用程序MVC5?
使用IdentityDbContext<ApplicationUser>
而不是非泛型,我们可以获得哪些好处IdentityDbContext
?
Ola*_*ybø 11
IdentityDbContext<ApplicationUser>
会让你使用自己的ApplicationUser
类作为User
实体.即,您可以为用户提供自定义属性.在IdentityDbContext
类继承IdentityDbContext<IdentityUser>
,这意味着你将不得不使用IdentityUser
类用户.
如果您希望在用户对象上拥有的属性多于IdentityUser
提供的少数属性(UserName,PasswordHash等等),那么您可能希望选择IdentityDbContext<ApplicationUser>
归档时间: |
|
查看次数: |
2927 次 |
最近记录: |