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