Exemplo n.º 1
0
 public DataAdapterFillCallback(DataTable dataTable,
                                CommandType commandType,
                                string sql,
                                ITableMappingCollection mappingCollection,
                                IDataAdapterSetter dataAdapterSetter,
                                IDataSetFillLifecycleProcessor fillLifecycleProcessor,
                                IDbParameters parameters)
 {
     containsDataSet = false;
     this.dataTable = dataTable;
     this.commandType = commandType;
     this.sql = sql;
     this.mappingCollection = mappingCollection;
     this.dataAdapterSetter = dataAdapterSetter;
     this.fillLifecycleProcessor = fillLifecycleProcessor;
     this.parameters = parameters;
 }
Exemplo n.º 2
0
 public virtual int DataSetFillWithParameters(DataSet dataSet, CommandType commandType, string sql,
                                              IDbParameters parameters,
                                              ITableMappingCollection tableMapping,
                                              IDataAdapterSetter dataAdapterSetter,
                                              IDataSetFillLifecycleProcessor fillLifecycleProcessor)
 {
     ValidateFillWithParameterArguments(dataSet, sql, parameters, tableMapping);
     return (int)Execute(new DataAdapterFillCallback(dataSet,
                                                     commandType, sql,
                                                     tableMapping, dataAdapterSetter, fillLifecycleProcessor, parameters));
 }
Exemplo n.º 3
0
 public virtual DataSet DataSetCreateWithParams(CommandType commandType, string sql,
                                                IDbParameters parameters,
                                                ITableMappingCollection tableMapping,
                                                IDataAdapterSetter dataAdapterSetter,
                                                IDataSetFillLifecycleProcessor fillLifecycleProcessor)
 {
     DataSet dataSet = CreateDataSet();
     DataSetFillWithParameters(dataSet, commandType, sql, parameters, tableMapping, dataAdapterSetter, fillLifecycleProcessor);
     return dataSet;
 }
Exemplo n.º 4
0
        public virtual int DataSetFill(DataSet dataSet, CommandType commandType, string sql,
                                       ITableMappingCollection tableMapping,
                                       IDataAdapterSetter setter,
                                       IDataSetFillLifecycleProcessor fillLifecycleProcessor)
        {
            ValidateFillArguments(dataSet, sql, tableMapping);
            return (int)Execute(new DataAdapterFillCallback(dataSet,
                                                            commandType, sql,
                                                            tableMapping, setter, fillLifecycleProcessor, null));

        }
Exemplo n.º 5
0
 public virtual DataSet DataSetCreate(CommandType commandType, string sql,
                                      ITableMappingCollection tableMapping,
                                      IDataAdapterSetter setter,
                                      IDataSetFillLifecycleProcessor fillLifecycleProcessor)
 {
     DataSet dataSet = CreateDataSet();
     DataSetFill(dataSet, commandType, sql, tableMapping, setter, fillLifecycleProcessor);
     return dataSet;
 }