码迷,mamicode.com
首页 > 数据库 > 详细

IdentityDbContext

时间:2016-06-18 06:47:31      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:

  1. Move the ApplicationUser definition to your DAL.
  2. Inherit your MyDbContext from IdentityDbContext<ApplicationUser> or IdentityDbContext
  3. OnModelCreating - Provide the foreign key info.
  4. Pass MyDbContext while creating the UserManager<ApplicationUser>

IdentityDbContext

标签:

原文地址:http://www.cnblogs.com/shiningrise/p/5595574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!