MissingMappingAction and MissingSchemaAction

  • Thread starter Thread starter Jiho Han
  • Start date Start date
J

Jiho Han

I am working with DataSet and DataAdapter and have been pretty successful
achieving the effects I want.

However, I am not able to understand the difference between say, MissingMappingAction.Passthrough
vs. MissingSchemaAction.Add.
From what I've gathered both seem like they will create the missing schema
information. MissingSchemaAction.AddWithKey would append some constraints
on top of them.

And I am guessing that these only apply for the Fill method and obviously
have no effect on FillSchema method since the method itself is addressing
the schema information. Just making sure.

Thanks

Jiho Han
Senior Software Engineer
Infinity Info Systems
The Sales Technology Experts
Tel: 212.563.4400 x216
Fax: 212.760.0540
(e-mail address removed)
www.infinityinfo.co
 
MissingMappingAction & MissingSchemaAction do different things as explained
in MSDN documentation.
They apply to Fill & FillSchema w/ SchemaType.Mapped.

Fill will take the column names from the datareader to the
ColumnMappingCollection and if missing apply the MissingMappingAction.
With the mapped column name, it will look at the DataTable and if the column
is missing apply the MissingSchemaAction.
 
Back
Top