public static void ForceCSASSetting(IDbTransaction trans, IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.Oracle.ExecutionService.ExecutionService"); MethodInfo forceCSASSetting = executionService.GetType().GetMethod("ForceCSASSetting", new [] { typeof(IDbTransaction) }); forceCSASSetting.Invoke(executionService, new object[] { trans }); }
public static bool GetIsIntegratedSecurityOnly(IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.SqlServer.ExecutionService.ExecutionService"); PropertyInfo serverVersionProperty = executionService.GetType().GetProperty("IsIntegratedSecurityOnly", BindingFlags.Public | BindingFlags.Instance); return((bool)serverVersionProperty.GetValue(executionService, null)); }
public static DBSqlServerVersion GetSqlServerVersion(IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.SqlServer.ExecutionService.ExecutionService"); PropertyInfo serverVersionProperty = executionService.GetType().GetProperty("ServerVersion", BindingFlags.Public | BindingFlags.Instance); return((DBSqlServerVersion)Enum.Parse(typeof(DBSqlServerVersion), serverVersionProperty.GetValue(executionService, null).ToString())); }
public static XmlReader ExecuteXmlReaderMethod(SqlCommand sqlCommand, IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.SqlServer.ExecutionService.ExecutionService"); MethodInfo executeXmlReaderMethod = executionService.GetType().GetMethod("ExecuteXmlReader", new Type[] { typeof(SqlCommand) }); return(executeXmlReaderMethod.Invoke(executionService, new Object[] { sqlCommand }) as XmlReader); }
public static bool IsConnectedUser(IDbConnection conn, string userName, IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.Oracle.ExecutionService.ExecutionService"); MethodInfo isConnectedUser = executionService.GetType().GetMethod("IsConnectedUser", new[] { typeof(IDbConnection), typeof(string) }); return((bool)isConnectedUser.Invoke(executionService, new object[] { conn, userName })); }
public static void RestoreComparisonSettings(IDbTransaction trans, IExecutionService executionService) { CheckType(executionService.GetType(), "OutSystems.HubEdition.DatabaseProvider.Oracle.ExecutionService.ExecutionService"); MethodInfo restoreComparisonSettings = executionService.GetType().GetMethod("RestoreComparisonSettings"); restoreComparisonSettings.Invoke(executionService, new object[] { trans }); }