Table and Column Mappings

Table and column mappings enable you to alter the schema of the DataTable that's dynamically created in the DataSet. In the previous listings you filled the DataSet, taking in the schema provided to you by the data store. There are certainly instances when you'll want to change this. Often, database column names can be a bit cryptic, and changing them can make writing your code easier. Table and column mappings allow you to create a master mapping between the data returned from the data store and the DataTable in the DataSet. The DataSet maintains the table and column mappings and can translate them back to their original names when reconciling the data with the data store.

Note

In the previous listings, you've been ...

Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.