protected virtual void Dispose(bool disposing) { if (disposing) { if (context != null) { context.Dispose(); context = null; } } }
public GenericRepository(CloudControlEntities context) { this.context = context; this.dbSet = context.Set <TEntity>(); }