Exemplo n.º 1
0
 protected DataAdapter(DataAdapter from)
 {
     this._acceptChangesDuringUpdate            = true;
     this._acceptChangesDuringUpdateAfterInsert = true;
     this._acceptChangesDuringFill = true;
     this._missingMappingAction    = System.Data.MissingMappingAction.Passthrough;
     this._missingSchemaAction     = System.Data.MissingSchemaAction.Add;
     this._objectID = Interlocked.Increment(ref _objectTypeCount);
     this.CloneFrom(from);
 }
Exemplo n.º 2
0
 protected DataAdapter()
 {
     this._acceptChangesDuringUpdate            = true;
     this._acceptChangesDuringUpdateAfterInsert = true;
     this._acceptChangesDuringFill = true;
     this._missingMappingAction    = System.Data.MissingMappingAction.Passthrough;
     this._missingSchemaAction     = System.Data.MissingSchemaAction.Add;
     this._objectID = Interlocked.Increment(ref _objectTypeCount);
     GC.SuppressFinalize(this);
 }
 protected DataAdapter(DataAdapter from)
 {
     this._acceptChangesDuringUpdate = true;
     this._acceptChangesDuringUpdateAfterInsert = true;
     this._acceptChangesDuringFill = true;
     this._missingMappingAction = System.Data.MissingMappingAction.Passthrough;
     this._missingSchemaAction = System.Data.MissingSchemaAction.Add;
     this._objectID = Interlocked.Increment(ref _objectTypeCount);
     this.CloneFrom(from);
 }
 protected DataAdapter()
 {
     this._acceptChangesDuringUpdate = true;
     this._acceptChangesDuringUpdateAfterInsert = true;
     this._acceptChangesDuringFill = true;
     this._missingMappingAction = System.Data.MissingMappingAction.Passthrough;
     this._missingSchemaAction = System.Data.MissingSchemaAction.Add;
     this._objectID = Interlocked.Increment(ref _objectTypeCount);
     GC.SuppressFinalize(this);
 }
Exemplo n.º 5
0
 private void CloneFrom(DataAdapter from)
 {
     this._acceptChangesDuringUpdate            = from._acceptChangesDuringUpdate;
     this._acceptChangesDuringUpdateAfterInsert = from._acceptChangesDuringUpdateAfterInsert;
     this._continueUpdateOnError       = from._continueUpdateOnError;
     this._returnProviderSpecificTypes = from._returnProviderSpecificTypes;
     this._acceptChangesDuringFill     = from._acceptChangesDuringFill;
     this._fillLoadOption       = from._fillLoadOption;
     this._missingMappingAction = from._missingMappingAction;
     this._missingSchemaAction  = from._missingSchemaAction;
     if ((from._tableMappings != null) && (0 < from.TableMappings.Count))
     {
         DataTableMappingCollection tableMappings = this.TableMappings;
         foreach (object obj2 in from.TableMappings)
         {
             tableMappings.Add((obj2 is ICloneable) ? ((ICloneable)obj2).Clone() : obj2);
         }
     }
 }
Exemplo n.º 6
0
 internal DataTableMapping GetTableMappingBySchemaAction(string sourceTableName, string dataSetTableName, System.Data.MissingMappingAction mappingAction)
 {
     return(DataTableMappingCollection.GetTableMappingBySchemaAction(this._tableMappings, sourceTableName, dataSetTableName, mappingAction));
 }
 private void CloneFrom(DataAdapter from)
 {
     this._acceptChangesDuringUpdate = from._acceptChangesDuringUpdate;
     this._acceptChangesDuringUpdateAfterInsert = from._acceptChangesDuringUpdateAfterInsert;
     this._continueUpdateOnError = from._continueUpdateOnError;
     this._returnProviderSpecificTypes = from._returnProviderSpecificTypes;
     this._acceptChangesDuringFill = from._acceptChangesDuringFill;
     this._fillLoadOption = from._fillLoadOption;
     this._missingMappingAction = from._missingMappingAction;
     this._missingSchemaAction = from._missingSchemaAction;
     if ((from._tableMappings != null) && (0 < from.TableMappings.Count))
     {
         DataTableMappingCollection tableMappings = this.TableMappings;
         foreach (object obj2 in from.TableMappings)
         {
             tableMappings.Add((obj2 is ICloneable) ? ((ICloneable) obj2).Clone() : obj2);
         }
     }
 }