Exemple #1
0
        public EntityToCommandCustom(DatabaseTypeCustom DatabaseTypeCustom)
        {
            _fwDatabaseType = DatabaseTypeCustom;
            switch (_fwDatabaseType)
            {
            case DatabaseTypeCustom.Sql:
                entityToCommandCustom = new SqlEntityToCommandCustom();
                break;

            case DatabaseTypeCustom.Oracle:
                //iFWCommand = new FWOracleCommand(recordCount, fwComparisonType);
                break;

            case DatabaseTypeCustom.Odbc:
                //entityToCommandCustom = new FWOdbcCommand(recordCount, fwComparisonType);
                break;

            case DatabaseTypeCustom.OleDb:
                //_iFWCommand = new FWOleDbCommand(recordCount, fwComparisonType);
                break;

            case DatabaseTypeCustom.MySql:
                //entityToCommandCustom = new FWMySqlEntityToFWCommand();
                break;
            }
        }
Exemple #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_recordCount">影响的记录条数</param>
 /// <param name="_ComparisonType">影响的比较规则</param>
 public CommandCustom(DatabaseTypeCustom databaseTypeCustom, Int64 recordCount, ComparisonTypeCustom comparisonTypeCustom)
 {
     _fwDatabaseType = databaseTypeCustom;
     switch (_fwDatabaseType)
     {
     case DatabaseTypeCustom.Sql:
         _ICommandCustom = new SqlCommandCustom(recordCount, comparisonTypeCustom);
         break;
         //case DatabaseTypeCustom.Oracle:
         //    //iFWCommand = new FWOracleCommand(recordCount, comparisonTypeCustom);
         //    break;
         //case DatabaseTypeCustom.Odbc:
         //    _ICommandCustom = new FWOdbcCommand(recordCount, comparisonTypeCustom);
         //    break;
         //case DatabaseTypeCustom.OleDb:
         //    _ICommandCustom = new FWOleDbCommand(recordCount, comparisonTypeCustom);
         //    break;
         //case DatabaseTypeCustom.MySql:
         //    _ICommandCustom = new FWMySqlCommand(recordCount, comparisonTypeCustom);
         //    break;
     }
 }
 public CommandCustomHelper(DatabaseTypeCustom DatabaseTypeCustom)
 {
     _DatabaseTypeCustom = DatabaseTypeCustom;
     switch (_DatabaseTypeCustom)
     {
     case DatabaseTypeCustom.Sql:
         _iFWCommandHelper = new SqlCommandHelper();
         break;
         //case DatabaseTypeCustom.Oracle:
         //    //ICommandCustomHelper = new FWOracleCommandHelper();
         //    break;
         //case DatabaseTypeCustom.Odbc:
         //    _iFWCommandHelper = new FWOdbcCommandHelper();
         //    break;
         //case DatabaseTypeCustom.OleDb:
         //    _iFWCommandHelper = new FWOleDbCommandHelper();
         //    break;
         //case DatabaseTypeCustom.MySql:
         //    _iFWCommandHelper = new FWMySqlCommandHelper();
         //    break;
     }
 }
Exemple #4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_recordCount">必须大于影响的记录条数</param>
 public CommandCustom(DatabaseTypeCustom databaseTypeCustom)
     : this(databaseTypeCustom, -1)
 {
 }
Exemple #5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="_recordCount">必须大于影响的记录条数</param>
 public CommandCustom(DatabaseTypeCustom databaseTypeCustom, Int64 recordCount)
     : this(databaseTypeCustom, recordCount, ComparisonTypeCustom.Than)
 {
 }
Exemple #6
0
        public static string checkParam(DatabaseTypeCustom DatabaseTypeCustom, string param)
        {
            CommandCustomHelper fwCommandHelper = new CommandCustomHelper(DatabaseTypeCustom);

            return(fwCommandHelper.checkParam(param));
        }
Exemple #7
0
        public static Type getValueType(DatabaseTypeCustom DatabaseTypeCustom, IDbTypeCustom dbType)
        {
            CommandCustomHelper fwCommandHelper = new CommandCustomHelper(DatabaseTypeCustom);

            return(fwCommandHelper.getValueType(dbType));
        }
Exemple #8
0
        public static string getDbTypeString(DatabaseTypeCustom DatabaseTypeCustom, IDbTypeCustom dbType)
        {
            CommandCustomHelper fwCommandHelper = new CommandCustomHelper(DatabaseTypeCustom);

            return(fwCommandHelper.getDbTypeString(dbType));
        }