internal static CustomDataCommand CreateCustomDataCommandFromSql(string sql, string dataBase)
        {
            InitConfig();

            DataCommandConfig config = new DataCommandConfig();
            config.Database = dataBase;
            config.CommandText = sql;
            return new CustomDataCommand(config);
        }
 public DataCommandConfig Clone()
 {
     DataCommandConfig config = new DataCommandConfig();
     config.CommandText = this.CommandText;
     config.CommandType = this.CommandType;
     config.Database = this.Database;
     config.Name = this.Name;
     config.Parameters = this.Parameters == null ? null : this.Parameters.Clone();
     config.TimeOut = this.TimeOut;
     return config;
 }
        public DataCommandConfig Clone()
        {
            DataCommandConfig config = new DataCommandConfig();

            config.CommandText = this.CommandText;
            config.CommandType = this.CommandType;
            config.Database    = this.Database;
            config.Name        = this.Name;
            config.Parameters  = this.Parameters == null ? null : this.Parameters.Clone();
            config.TimeOut     = this.TimeOut;
            return(config);
        }
 internal CustomDataCommand(DataCommandConfig config)
     : base(config)
 {
 }