Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.16 KB

creating-the-object-model.md

File metadata and controls

39 lines (27 loc) · 2.16 KB
description title ms.date ms.assetid
Learn more about: Creating the Object Model
Creating the Object Model
03/30/2017
27afce86-9b1d-45fb-8e0b-636bf671a236

Creating the Object Model

You can create your object model from an existing database and use the model in its default state. You can also customize many aspects of the model and its behavior.

If you are using Visual Studio, you can use the Object Relational Designer to create your object model.

In This Section

How to: Generate the Object Model in Visual Basic or C#
Describes how to use the SQLMetal command-line tool. Also provides a link to the Object Relational Designer for Visual Studio users

How to: Generate the Object Model as an External File
Describes how to generate an external mapping file instead of using attribute-based mapping.

How to: Generate Customized Code by Modifying a DBML File
Describes how to generate Visual Basic or C# code from a DBML metadata file.

How to: Validate DBML and External Mapping Files
Describes how to validate mapping files that you have modified (advanced).

How to: Make Entities Serializable
Describes how to add appropriate attributes to make entities serializable.

How to: Customize Entity Classes by Using the Code Editor
Describes how to use the code editor to write your own mapping code, or customize code that has been autogenerated.

Related Sections

The LINQ to SQL Object Model
Provides details about the [!INCLUDEvbtecdlinq] object model.

Typical Steps for Using LINQ to SQL
Explains the typical steps that you follow to implement a [!INCLUDEvbtecdlinq] application.