asp.net.ph

DataAdapter.MissingMappingAction Property

System.Data.Common Namespace   DataAdapter Class


Determines the action to take when incoming data does not have a matching table or column.

Syntax


Script DataAdapter.MissingMappingAction [ = enumValue ]

Property Value


enumValue One of the MissingMappingAction values.

The property is read/write with a default value of Passthrough.

Exceptions


Exception Type Condition
ArgumentException Occurs when the value set is not one of the MissingMappingAction values.

Remarks

The TableMappings property provides the master mapping between the returned records and the DataSet.

Example

The following example initializes a derived class, an SqlDataAdapter, and sets some of its properties.

SqlDataAdapter myAdapter = new SqlDataAdapter ( );
myAdapter.SelectCommand.CommandText = "SELECT * FROM pubs_Titles";
myAdapter.SelectCommand.Connection = new SqlConnection (
   "server=localhost; trusted_connection=yes; database=pubs" );
myAdapter.MissingMappingAction = MissingMappingAction.Error;
myAdapter.MissingSchemaAction = MissingSchemaAction.Error;
  C# VB

See Also

DataAdapter Members   MissingSchemaAction Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note