コード例 #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);
 }
コード例 #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);
 }
コード例 #3
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);
 }
コード例 #4
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);
 }
コード例 #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);
         }
     }
 }
コード例 #6
0
 internal DataTableMapping GetTableMappingBySchemaAction(string sourceTableName, string dataSetTableName, System.Data.MissingMappingAction mappingAction)
 {
     return(DataTableMappingCollection.GetTableMappingBySchemaAction(this._tableMappings, sourceTableName, dataSetTableName, mappingAction));
 }
コード例 #7
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);
         }
     }
 }