Model Properties

This topic provides information on the properties of the model that are displayed in the Properties window. They are displayed when you select the model (root) node in Model Explorer or when you click an empty place on the diagram sheet.

Access

Set the accessibility level of the DataContext class here.

Base Class

Base class of the DataContext.

Context Namespace

Namespace to define DataContext.

Entity Base

Here you can set a base class or interface for your entities. You also can enter several interfaces, separating them with commas.

Entity Namespace

Namespace  to define classes mapped to tables.

File Per Class

Select this check box to place each model class to its separate file when generating code. Otherwise, all model classes will be placed into a single file.

Inheritance Modifier

Set the inheritance modifier for the DataContext class here.

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.

Connection

Displays the provider and connection string. This property is read-only. To edit the model connection, click the Edit Connection Properties button on the Database Explorer toolbar.

Name

Name of DataContext.

 


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.