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