You use a DbDataAdapter to populate a DataTable. You need to ensure that when the DbDataAdapter loads the DataTable, it sets the DataColumn.MaxLength and DataColumn.ReadOnly properties to correspond to data source-defined constraints.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 1749 | Points: 40
Select from following answers:
  1. Set DbDataAdapter.MissingSchemaAction to MissingSchemaAction.AddWithKey.
  2. Set DbDataAdapter.MissingSchemaAction to MissingSchemaAction.Add.
  3. Set DbDataAdapter.MissingMappingAction to MissingMappingAction.Passthrough.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response