public CourtRepository(string cfgConnectionString) { if (cfgConnectionString.Equals(string.Empty)) throw new Exception("Cfg Database query engine is not connected"); else _db = new CfgDataContext(cfgConnectionString); }
public LocationRepository(string cfgConnectionString) { if (cfgConnectionString.Equals(string.Empty)) { throw new Exception("Cfg Database query engine is not connected"); } else { _db = new CfgDataContext(cfgConnectionString); } }