FranLsz / RepositoryPatternGenerator-VS-Extension

Visual Studio extension to generate repository pattern code from an EF6 data model.
https://visualstudiogallery.msdn.microsoft.com/db555413-64cf-4dea-9cf4-739cd65d0ba4
Apache License 2.0
10 stars 1 forks source link

Support EF from another project #1

Closed tematim closed 8 years ago

tematim commented 8 years ago

Hello,

In my project there is the same edmx for API and WPF clients.

Is it possible to create the pattern with an external project with EDMX as the only files in it ?

Regards

FranLsz commented 8 years ago

Hi tematim,

Yes, its possible.

Your external project must have a folder named "Models" (for example) in the root of the project with EDMX file in it.

After that, click on Generate button located on Visual Studio menu and, in settings panel, put the name of that external project and the name of models" folder" with .edmx file.

Of course, you must have loaded the external project in the current solution to generate code.

Regards