General

Name

Name of the DataContext.

Base Class

Base class of the DataContext.

Context Namespace

Namespace for defining DataContext.

Entity Namespace

Namespace for defining the classes, mapped to tables.

Access

Set the accessibility level of the DataContext class here. Acceptable values are: Public or Internal.

Serialization Mode

Select Unidirectional if you want to serialize your model classes. This adds [DataContract()] attributes from the System.Runtime.Serialization.dll assembly. Select None if you do not need serialization.

Inheritance Modifier

Set the inheritance modifier for the DataContext class here.

None

The default value. No inheritance modification is performed.

Abstract

Specifies that the DataContext class is abstract.

Sealed

Setting Inheritance Modifier to Sealed forbids further inheritance. In this case, the DataContext class cannot be a base class.

Mapping Mode

Determines how mapping and model are pre-processed at the build time.

Attributes

The code will be generated with mapping attributes.

File

To use external mapping, an XML mapping file should be created. The main model file (e.g., CrmDemoContext.lqml) should not be used for this purpose, as it stores extended information about entity fields and database columns. Thus, .lqml files include properties not declared in the mapping files schema.

To create the proper file, set the Mapping Mode model property to File. In this case, Entity Developer will generate a mapping file (e.g. CrmDemoContext.xml) that satisfies the standard schema.

Target Framework

Defines the framework on which the application using LinqConnect will be run. Acceptable values are:

.NET Framework

Desktop applications and websites.

Windows Phone

Applications for mobile phones.

Silverlight

Applications that run in browsers.

Metro

Applications for Windows 8 with tile interface.

Preserve schema name in storage

If checked, preserves the name of the schema for model objects when they are added from the database.

Use Database Comments

Determines whether comments for database objects, if supported by DBMS, will be used for model objects Documentation initialization and taken into account when executing model or database update operations.

Detect ManyToMany Associations

Select this check box to turn on the detection of many-to-many associations in your projects. If this check box is not selected, a class with two one-to-many associations will be generated for an intermediate table instead of a many-to-many association.

Use connection string from App.Config (Web.Config) as

Specifies whether the connection string from App.Config (or Web.Config) should be used and allows specifying its name. If the check box is cleared, the connection string is specified explicitly in the model class constructor.

Rewrite connection string during regeneration

Determines whether to overwrite the connection string in the project config file with the one, currently set in Entity Developer for the model, each time when regenerating code for the model.

 


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.