Select from following answers:- Set DbDataAdapter.MissingSchemaAction to MissingSchemaAction.AddWithKey.

- Set DbDataAdapter.MissingSchemaAction to MissingSchemaAction.Add.
- Set DbDataAdapter.MissingMappingAction to MissingMappingAction.Passthrough.
- All Above
Setting DbDataAdapter.MissingSchemaAction to MissingSchemaAction.AddWithKey configures the following DataColumn properties if they exist at the data source: AllowDBNull, AutoIncrement, MaxLength, ReadOnly, and Unique.
The DataAdapter.MissingSchemaAction property is used to specify whether missing source tables, columns, and their relationships are added to the data set schema, are ignored, or cause an error to be raised. Setting DbDataAdapter.MissingSchemaAction to MissingSchemaAction.Add does not add schema information like column MaxLength and ReadOnly constraints.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator