Page 1 of 1

VS2013 RC1: MetadataException on loading of SqlServer model

Posted: Tue 15 Oct 2013 08:59
by Lotto
1. My development Environment: Win8, VS2010 + VS2013 RC1 on the same Maschine
2. EntityDeveloper Version: 5.5.196
3. Problem description: System.Data.Entity.Core.MetadataException in VS2013 + EF6 after first Access to model derived from DbContext (regardless of selected EF-Version or DevArt Code-Template).
4. Steps to reproduce:
- Create WindowsForms Project based on VS2013 template for C# Windows Forms Project.
- In Solution-Explorer: add new element -> DevArt Entity Model
- In Create Model Wizard select following Options:
a) database first
b) Provider: .NET Data Provider for SqlServer
c) any SqlServer2008 R2 DB + any Table
d) Entity Framework Version: EF6 (is not significant for this issue, EF4 causes the same problem)
e) Select any Code-Template (DbContext for instance)

- Now add to Form1_Load(..) Event any access code, for instance:

MyEntities db = new MyEntities();
IEnumerable<Adress> list = (from a in db.Adresses select a).ToList();
- Build and Run this Project and you get MetaData Exception.

Note: VS2010 and EF4 on the same maschine works fine.

Re: VS2013 RC1: MetadataException on loading of SqlServer model

Posted: Tue 15 Oct 2013 11:10
by Shalex
The bug with "DevartEntityDeploy" task, which generates mapping files, in Visual Studio 2013 Release Candidate is fixed. We will post here when the new public build of Entity Developer is available for download.

Re: VS2013 RC1: MetadataException on loading of SqlServer model

Posted: Fri 18 Oct 2013 11:01
by Shalex
New version of Entity Developer 5.6 is released!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=28136.