コード例 #1
0
 private string ConnectionString(DBConfig.ServerElement configvalue)
 {
     return("Data Source=" + configvalue.Address + ";" +
            "Initial Catalog=" + configvalue.InitialCatalog + ";" +
            "User id=" + configvalue.Username + ";" +
            "Password="******";");
 }
コード例 #2
0
 public ServerConnection(DBConfig.ServerElement config)
 {
     _name        = config.Name;
     _adaptertype = config.AdapterType;
     _constring   = ConnectionString(config);
 }
コード例 #3
0
 protected override object GetElementKey(ServerElement element)
 {
     return(((ServerElement)element).Name);
 }