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