Page 1 of 1

Entity Developer and MVC 6 can't create Template code

Posted: Thu 22 Oct 2015 13:33
by Zero-G.
Hey
Just started from scratch.
Create a new Project, ASP.NET Framework 4.6! VB.NET
Then, start NuGet and update all dependencies.
Add Entity Framework 6 (Version 6.1.3)
After that, I created a new Entity Model (.edml) Code First Aproach.
I imported an existing database -> At the end, I want to have the Code first!
But, when I add a template (VB.NET Entity Template) and Change the Entity Framework from the models Settings to 6, I get the error
1 Model validation for Entity Framework 6 is not supported: the 'EntityFramework.dll' assembly is not available or .NET Framework 4.5 is not installed.

The error is right, because i use Framework 4.6...
How Please give me advise
THX

Re: Entity Developer and MVC 6 can't create Template code

Posted: Thu 22 Oct 2015 13:55
by Zero-G.
Hey
Sorry, because of some Problems with Visual Studio (because the first Code was generated with EF 5 -> So I had over 8k+ Errors...) The Generation failed.
After a restart of VS and Entity Developer, the "error" still is visible, but I was able to run the Code Generation, now the Code Looks good. - Even the error is still there

THX

Re: Entity Developer and MVC 6 can't create Template code

Posted: Fri 23 Oct 2015 15:56
by Shalex
1. Have you added the reference to EntityFramework.dll v6 in the project where the *.edml model resides? This is actual when a solution includes several projects.

2. Specify the version, edition, and service pack of your Windows.

3. Tell us the exact version and edition of your Visual Studio (Help > About).

4. Navigate to Tools > Entity Developer > About and specify your version (x.x.x).

Re: Entity Developer and MVC 6 can't create Template code

Posted: Tue 17 Nov 2015 14:25
by Zero-G.
Hey

I found now a solution to this Problem:
I have copied the EntityFramework.dll and EntityFramework.SqlServer.dll file into the Folder where Entity Framework is installed.
in my case: C:\Program Files (x86)\Devart\EntityDeveloper

Now everyhting works fine.
To answer your questions:
1') Yes I have
2) Edition = Windows 10 Pro (including Treshold 2 update)
3) Visual Studio Enterprise 2015 Version: 14.0.23107.0 D14REL
4) 5.8.734

THX

Re: Entity Developer and MVC 6 can't create Template code

Posted: Fri 20 Nov 2015 11:29
by Shalex
Zero-G. wrote:I found now a solution to this Problem:
I have copied the EntityFramework.dll and EntityFramework.SqlServer.dll file into the Folder where Entity Developer is installed.
in my case: C:\Program Files (x86)\Devart\EntityDeveloper
That is a correct approach for the standalone version of Entity Developer.