예제 #1
0
 public JsonResult Connect(string server, string userName, string password)
 {
     return ExecuteCommand(
         () =>
         {
             IDatabaseProvider db = new SqlServerProvider();
             db.Initialize(server, userName, password);
             string serverName = db.GetServerName();
             DatabaseProvider = db;
             return serverName;
         }
     );
 }
예제 #2
0
 public void InitializeProvider()
 {
     provider = new SqlServerProvider();
     provider.Initialize(".", "sa", "sasasa");
 }