示例#1
0
 public BaseRepository(NetCoreExampleDbContext db)
 {
     Db = db;
     EntityFrameworkManager.ContextFactory = context => Db;
 }
 public UserRepository(UserManager <User> userManager, NetCoreExampleDbContext db)
 {
     _userManager = userManager;
     _db          = db;
 }