Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 4.11 KB

File metadata and controls

67 lines (51 loc) · 4.11 KB
title How to: Customize Entity Classes by Using the Code Editor
ms.custom
ms.date 03/30/2017
ms.prod .net-framework
ms.reviewer
ms.suite
ms.technology
dotnet-ado
ms.tgt_pltfrm
ms.topic article
ms.assetid ec28332f-9f3c-4e0a-baca-60f9141a68c0
caps.latest.revision 3
author douglaslMS
ms.author douglasl
manager craigg
ms.workload
dotnet

How to: Customize Entity Classes by Using the Code Editor

Developers using [!INCLUDEvs_current_short] can use the [!INCLUDEvs_ordesigner_long] to create or customize their entity classes.

You can also use the [!INCLUDEvsprvs] code editor to write your own mapping code or to customize code that has already been generated. For more information, see Attribute-Based Mapping.

The topics in this section describe how to customize your object model.

How to: Specify Database Names
Describes how to use xref:System.Data.Linq.Mapping.DatabaseAttribute.Name%2A.

How to: Represent Tables as Classes
Describes how to use xref:System.Data.Linq.Mapping.TableAttribute.

How to: Represent Columns as Class Members
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.

How to: Represent Primary Keys
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.IsPrimaryKey%2A.

How to: Map Database Relationships
Provides examples of using the xref:System.Data.Linq.Mapping.AssociationAttribute attribute.

How to: Represent Columns as Database-Generated
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.IsDbGenerated%2A.

How to: Represent Columns as Timestamp or Version Columns
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.IsVersion%2A.

How to: Specify Database Data Types
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.DbType%2A.

How to: Represent Computed Columns
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.Expression%2A.

How to: Specify Private Storage Fields
Describes how to use xref:System.Data.Linq.Mapping.DataAttribute.Storage%2A.

How to: Represent Columns as Allowing Null Values
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.CanBeNull%2A.

How to: Map Inheritance Hierarchies
Describes the mappings required to specify an inheritance hierarchy.

How to: Specify Concurrency-Conflict Checking
Describes how to use xref:System.Data.Linq.Mapping.ColumnAttribute.UpdateCheck%2A.

See Also

SqlMetal.exe (Code Generation Tool)