On this page you can set the properties of the model, note that properties differ depending on the model type.
Enter the name of the namespace that will contain your model Defines the namespace where the Entity Model class will be saved. Enter the name of your Entity model Specify the name of Entity Model. You can easily change it later. Entity Framework version Specify the version of Entity Framework that will be used for your project. One of the following versions can be selected (depending on Entity Framework installed on your computer): 3.5, 4.0 and 5.0. Include foreign key columns into the model Specify whether to include foreign key columns in the model. Not available for Entity Framework v1. Import selected stored procedures into the context model Specify whether to create corresponding methods in the conceptual model for procedures and functions selected at the stage of choosing model diagram contents. For functions and stored procedures that return one or more result sets, this will create complex types that correspond to the structure of the result. Detect function-based column default value Defines whether columns having a function-based default value are interpreted as Identity. Preserve schema name in storage Specifies whether the schema name should be preserved in the storage part. Detect ManytoMany Associations Specifies whether many-to-many associations should be detected. 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. Save connection settings in App.Config (Web.Config) as (available only in Visual Studio add-in) Specifies whether the connection string should be saved in App.Config (or Web.Config) and allows specifying its name. If the check box is deselected, the connection string is specified explicitly in the model class constructor. |
Detect ManytoMany Associations Specifies whether many-to-many associations should be detected. 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. Preserve schema name in storage Specifies whether the schema name should be preserved in the storage part. 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. Default Namespace Specifies the namespace to assume for unqualified class names in the document. Default Assembly Specifies the assembly to assume for unqualified class names in the document. Default Schema Specifies the name of the default database schema. Default Access Specifies the strategy that should be used to access a property value. Default Cascade Specifies the default cascade style. Default Precision Defines the default maximum number of digits for database columns. Default Scale Defines the default number of digits to the right of the decimal point for database columns. Default Enum Storage Mode Determines how properties of enum types will be stored in the database by default. Acceptable values are Integer (default) and String. Default Collection Type Default collection type used for the Many end of associations. Acceptable values are Set and Bag. Auto-Import Specifies whether unqualified class names (of classes in this mapping) can be used in the query language. Default Unicode Specifies whether to use the Unicode encoding for database columns by default. Default Collection Generic Defines the default value of the generic property used for the Many end of associations. Default Lazy Specifies whether lazy fetching is enabled (when set to True) or disabled (when set to False). Default Identity Generator Name Specifies the name of the default identity generator. Parameters Lists parameters of the default identity generator. |
Enter the name of the namespace that will contain your model Defines the namespace where the DataContext class will be saved. Enter name of DataContext Specify the name of DataContext. You can easily change it later. Preserve schema name in storage Specifies whether the schema name should be preserved in the storage part. 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 Specifies whether many-to-many associations should be detected. This option is available only for LinqConnect models. Save connection settings in App.Config (Web.Config) as Specifies whether the connection string should be saved in App.Config (or Web.Config) and allows specifying its name. If the check box is deselected, the connection string is specified explicitly in the model class constructor. |
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 the a default collection type to use for navigation properties with cardinality "Many". 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.
|