首页 新闻 赞助 找找看

MVC Oracle身份验证

0
悬赏园豆:30 [待解决问题]

数据库为oracle的mvc身份验证怎样的?

IdentityModels下面的代码修改如下

 1 // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more.
 2     public class ApplicationUser : IdentityUser
 3     {
 4 
 5     }
 6 
 7     public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
 8     {
 9         public ApplicationDbContext()
10             : base("DefaultConnection")
11         {
12         }
13 
14         public static ApplicationDbContext Create()
15         {
16             return new ApplicationDbContext();
17         }
18 
19         protected override void OnModelCreating(DbModelBuilder modelBuilder)
20         {
21             modelBuilder.HasDefaultSchema("SH");
22         }
23 
24     }

运行出错:

模型生成过程中检测到一个或多个验证错误:

MVCAcount.Models.IdentityUserLogin: : EntityType“IdentityUserLogin”未定义键。请为该 EntityType 定义键。
MVCAcount.Models.IdentityUserRole: : EntityType“IdentityUserRole”未定义键。请为该 EntityType 定义键。
IdentityUserLogins: EntityType: EntitySet“IdentityUserLogins”基于未定义任何键的类型“IdentityUserLogin”。
IdentityUserRoles: EntityType: EntitySet“IdentityUserRoles”基于未定义任何键的类型“IdentityUserRole”。

青春12的主页 青春12 | 初学一级 | 园豆:68
提问于:2016-06-12 15:10
< >
分享
所有回答(1)
0

http://wenku.baidu.com/view/2cdc975269eae009581bece0.html

这个链接  你看看  可能会帮到你

_博客 | 园豆:264 (菜鸟二级) | 2016-06-13 09:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册