DataAdapter Constructors

Definition

Initializes a new instance of the DataAdapter class.

Overloads

DataAdapter()

Initializes a new instance of the DataAdapter class.

DataAdapter(DataAdapter)

Initializes a new instance of the DataAdapter class from an existing object of the same type.

DataAdapter()

Source:
DataAdapter.cs
Source:
DataAdapter.cs
Source:
DataAdapter.cs

Initializes a new instance of the DataAdapter class.

C#
protected DataAdapter();

Remarks

When an instance of DataAdapter is created, the following read/write properties are set to the following initial values.

Properties Initial value
MissingMappingAction MissingMappingAction.Passthrough
MissingSchemaAction MissingSchemaAction.Add
TableMappings An array of TableMappings objects.

You can change the value of any of these properties through a separate call to the property.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DataAdapter(DataAdapter)

Source:
DataAdapter.cs
Source:
DataAdapter.cs
Source:
DataAdapter.cs

Initializes a new instance of the DataAdapter class from an existing object of the same type.

C#
protected DataAdapter(System.Data.Common.DataAdapter from);
C#
protected DataAdapter(System.Data.Common.DataAdapter adapter);

Parameters

fromadapter
DataAdapter

A DataAdapter object used to create the new DataAdapter.

Remarks

This overload of the DataAdapter constructor is designed for use by a .NET Framework data provider when implementing a similar constructor for use in a clone implementation.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1