Export (0) Print
Expand All

How to: Edit Facet Values

[This page is specific to the latest version of the Entity Framework. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

Facets represent data type constraints on scalar properties of entities. This topic describes how to use the Entity Designer to edit facet values in the conceptual schema definition language (CSDL) of an .edmx file.

When you select a scalar property of an entity in the Entity Designer, you can view the applicable facets in the Properties window. The following is a list of all possible facets:

  • Collation

  • FixedLength

  • MaxLength

  • Precision

  • Scale

  • StoreGeneratedPattern

  • Unicode

Not all facets are applicable to every property type. For more information, see Facets.

The Create Database Wizard uses CSDL facets to set data types for table columns in the generated database and to create corresponding facet entries in the storage model. For more information, see Database Generation Rules.

Editing Facet Values in CSDL

The following procedure describes how to edit facet values in the Conceptual Model Content section of the .edmx file. Following this procedure does not edit facet values in the Storage Model Content section of the .edmx file.

To edit facet values in CSDL

  1. Right-click the scalar property whose facet values you want to edit and select Properties .

    The Properties window appears.

  2. Edit the value for each facet in the Properties window.

See Also

Other Resources

Entity Designer

Build Date:

© 2014 Microsoft