Exemple #1
0
        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 });
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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()));
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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 }));
        }
Exemple #6
0
        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 });
        }