コード例 #1
0
        public void Validate()
        {
            ConnectionValidationResult r =
                OracleScriptProcessor.ValidateConnectionSettings(this);

            IsValid      = r.IsValid;
            ErrorMessage = r.Message;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of a script processor.
        /// </summary>
        /// <param name="databaseType">The type for which to create a script processor</param>
        /// <returns>A new instance of a script processor.</returns>
        public static IScriptProcessor GetProcessorInstance(DatabaseType databaseType)
        {
            IScriptProcessor sp = null;

            switch (databaseType)
            {
            case DatabaseType.Oracle:
            {
                sp = new OracleScriptProcessor();
                break;
            }

            case DatabaseType.SqlServer:
            {
                sp = new SqlServerScriptProcessor();
                break;
            }
            }

            return(sp);
        }