VS2013 RC1: MetadataException on loading of SqlServer model
Posted: Tue 15 Oct 2013 08:59
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.
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.