General

This page of the Model Settings dialog box is intended for Telerik Data Access model properties customization. Here you can specify Database-First settings for Entity Developer behavior management during the process of adding objects from database to model. Here you can also set default values for some properties of objects composing the model, such as e.g. Default Access. In fact, this tab is a more convenient representation of the basic model properties and Entity Developer behavior settings towards the specific model. To edit the full list of model properties, open the Properties window.

 

ExpandedToggleIcon        Database First Settings

Detect Many-to-Many 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.

Detect Table Per Type inheritances

Specifies that inheritances of this type should be detected automatically.

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.

Use the following connection string in the App.config file

Alows you to specify the connection string name in the App.config file to use.

Rewrite connection string during regeneration

If selected, Entity Developer will rewrite the specified connection string in the App.config file with the current connection settings every time when the code and mapping is generated for the model.

Preserve schema name in storage

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

Preserve columns details

Specifies whether full information about the column should be preserved.

Preserve columns SqlType and Default

Specifies whether only full information about the type should be preserved.

 

Context Namespace

Defines the namespace to be used for the context class.

Default Namespace

Defines the default namespace to be assumed for unqualified class names.

Default Schema

Makes it possible to define a default schema for database tables.

Default Identity Generator

Specifies the a default identity generator. You can see the available generators and their descriptions in the Primary Key Specifics topic.

Default Collection Type

Specifies default collection type for model class navigation properties pointing to the many end of an association.

Default Load Behavior

Specifies default load behavior for model class properties.

Default Length

Specifies default length for the columns, to which the string properties are mapped.

Default Unicode

Specifies whether to use the Unicode encoding for database columns by default.

 


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.