protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { if (_db != null) { _db.Dispose(); _db = null; } } _disposed = true; }
public LopRepository(QLThuHocPhiDbContext db) : base(db) { }
public Repo(QLThuHocPhiDbContext db) { _db = db; _table = db.Set <Entity>(); }