How to: Copy Model and Mapping Files to the Output Directory

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The ADO.NET Entity Data Model Designer (Entity Designer) enables you to copy model and mapping files to the output directory. By default, these files are embedded as resources in the application assembly.

To copy model and mapping files to the output directory

  1. Double-click the .edmx file in Solution Explorer.

    The file opens in the Entity Designer.

  2. Right-click an empty section of the design surface and select Properties.

    The Visual Studio Properties window appears.

  3. Set the value of the Metadata Artifact Processing property to Copy to Output Directory.

When you save the .edmx file, the Entity Designer modifies the connection string in the App.config file or Web.config file to indicate to the Entity Framework where the model and mapping files are located. (For more information about connection strings, see Connection Strings.) When you build the project, the model and mapping files are copied to the project's bin\Debug folder.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft