public GeneralRepository() : base() { if (this.db == null) { this.db = base.db; } entity = db.Set <T>(); }
public GeneralRepository(FlightManageBookDBContext db) { if (this.db == null) { this.db = db; } entity = db.Set <T>(); }