This enumeration is used with the IDataAdapter.FillSchema( ) method. It specifies whether schema information should use table and column mappings applied to the data adapter. If you specify Source, mappings are ignored. If you specify Mapped, the schema is retrieved using mappings, if they exist. For example, if the Customers data source table is mapped to the CustomerTable DataSet table, the schema is applied to CustomerTable. If the table doesn’t exist, it’s created. Note that if you aren’t using table mappings, both options are equivalent.

public enum SchemaType {

   Source = 1,

   Mapped = 2



System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) SchemaType

Passed To

System.Data.Common.DataAdapter.FillSchema( ), System.Data.Common.DbDataAdapter.FillSchema( ), IDataAdapter.FillSchema( )

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.