public LinkRepository(string cfgConnectionString) { if (cfgConnectionString.Equals(string.Empty)) throw new Exception("Link Database query engine is not connected"); else _db = new LinksDataContext(cfgConnectionString); }
public LinkRepository(string cfgConnectionString) { if (cfgConnectionString.Equals(string.Empty)) { throw new Exception("Link Database query engine is not connected"); } else { _db = new LinksDataContext(cfgConnectionString); } }