Ejemplo n.º 1
0
        internal static CustomDataCommand CreateCustomDataCommandFromSql(string sql, string dataBase)
        {
            InitConfig();

            DataCommandConfig config = new DataCommandConfig();
            config.Database = dataBase;
            config.CommandText = sql;
            return new CustomDataCommand(config);
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 internal CustomDataCommand(DataCommandConfig config)
     : base(config)
 {
 }