/// <summary>
 /// constructor GenericRepository
 /// </summary>
 /// <param name="context">context</param>
 /// <param name="entities">entities</param>
 public GenericRepository(KcbApplicationDbContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }
Esempio n. 2
0
 /// <summary>
 /// constructor AuthenticateRepository
 /// </summary>
 /// <param name="context">context</param>
 /// <param name="entities">entities</param>
 public AuthenticateRepository(KcbApplicationDbContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }