예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (context != null)
         {
             context.Dispose();
             context = null;
         }
     }
 }
예제 #2
0
 public GeneralRepository()
 {
     context = new AccountingContext();
     dbSet   = context.Set <T>();
 }