The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
How to: Represent Tables as Classes (LINQ to SQL)
.NET Framework 3.5
Use the LINQ to SQL TableAttribute attribute to designate a class as an entity class associated with a database table.
To map a class to a database table
Add the TableAttribute attribute to the class declaration.
The following code establishes the Customer class as an entity class that is associated with the Customers database table.
You do not have to specify the Name property if the name can be inferred. If you do not specify a name, the name is presumed to be the same name as that of the property or field.
Community Additions
Show: