/// <summary> /// SQL Accessorのインスタンスを取得する /// </summary> /// <param name="mode"></param> /// <param name="server"></param> /// <param name="userId"></param> /// <param name="password"></param> /// <param name="database"></param> /// <returns></returns> public static SqlAccessor GetSqlAccessor(AuthenticateMode mode, string server, string userId, string password, string database) { if (mode == AuthenticateMode.SqlServer) { return(SqlAccessor.CreateInstance(server, userId, password, database, Config.ConnectTimeout, Config.CommandTimeout)); } else { return(SqlAccessor.CreateInstance(server, database, Config.ConnectTimeout, Config.CommandTimeout)); } }