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