How to: Refactor Existing Properties into a Complex Type Property

[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.]

This topic describes how to use the Entity Designer to refactor existing entity properties into a complex type property.

To refactor existing properties into a complex type

  • On the Entity Designer surface, select one or more properties (excluding navigation properties) of an entity, then right-click and select Refactor into New Complex Type .

    A new complex type with the selected properties is added to the Model Browser. The complex type is given a default name. For information about renaming a complex type, see How to: Create and Modify Complex Types.

    A complex property of the newly created type replaces the selected properties. All property mappings are preserved.

See Also

Build Date: