Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (context != null)
         {
             context.Dispose();
             context = null;
         }
     }
 }
Exemple #2
0
 public UserRepository(KovaiLogDBContext context) : base(context)
 {
     this.db_context = context;
 }
Exemple #3
0
 public GenericRepository(KovaiLogDBContext dbContext)
 {
     context = dbContext;
     dbSet   = context.Set <TEntity>();
 }
Exemple #4
0
 public UnitOfWork(KovaiLogDBContext dbContext)
 {
     _dbContext = dbContext;
 }