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; } ); }
public void InitializeProvider() { provider = new SqlServerProvider(); provider.Initialize(".", "sa", "sasasa"); }