示例#1
0
 public GenericRepository(TimesheetDbContext context)
 {
     this.context = context;
     dbSet        = context.Set <T>();
 }
示例#2
0
 public UserInfoRepository(TimesheetDbContext context)
 {
     this.context = context;
     dbSet        = context.Set <UserInfoViewModel>();
     userManager  = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
 }