コード例 #1
0
 //TODO: Replace this with MEF so Core doesn't need to know about the providers
 public static ISPLoader GetInstance(ConnectionInfo connection)
 {
     switch(connection.ConnectionType.ToLowerInvariant())
     {
         case "sqlserver": return new SqlServer.SPLoader(connection.ConnectionString);
         default: throw new NotImplementedException();
     }
 }
コード例 #2
0
 public StoredProcGroupVM(string connectionString)
 {
     _cnn = new ConnectionInfo { DisplayName = "Default", ConnectionType = "sqlserver", ConnectionString = connectionString };
     Load();
 }
コード例 #3
0
 public StoredProcGroupVM()
 {
     var cstr = @"Data Source=.\dev;Initial Catalog=NORTHWND;Integrated Security=True";
     _cnn = new ConnectionInfo{DisplayName="Default", ConnectionType = "sqlserver", ConnectionString=cstr};
     Load();
 }