Questions tagged [edmgen]

25 questions
8
votes
7 answers

Entity Framework with MySQL - Timeout Expired while Generating Model

I've constructed a database in MySQL and I am attempting to map it out with Entity Framework, but I start running into "GenerateSSDLException"s whenever I try to add more than about 20 tables to the EF context. An exception of type …
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
5
votes
2 answers

How can I script the creation of .edmx files using Visual Studio 2010 and EF 4.1?

I'm starting a new project using EF 4.1, database first. If I generate the edmx using Visual Studio, then everything is fine; however I can't seem to figure out a way to refresh the edmx when there are changes to the database short of deleting &…
chris
  • 36,094
  • 53
  • 157
  • 237
4
votes
1 answer

Can I include stored procs when using edmgen.exe?

I have a couple of scripts I use to generate my edmx files (using edmgen and edmgen2). Is there a way to include stored procs? Or do I have to use the GUI designer for this?
chris
  • 36,094
  • 53
  • 157
  • 237
4
votes
1 answer

How to exclude views when generating a model using edmgen.exe?

I am using the edmgen.exe tool like this: "%windir%\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:fullgeneration /c:"Data Source=%datasourceserver%; Initial Catalog=School; Integrated Security=SSPI" /project:School…
morpheus
  • 18,676
  • 24
  • 96
  • 159
3
votes
1 answer

.NET EntityStoreSchemaFilterEntry filter patterns

First question to SO, I hope I'm doing this right. ;) Regarding System.Data.Entity.Design.EntityStoreSchemaFilterEntry : I'm looking for some detailed documentation on this class. The MSDN docs have nothing but an indication of what properties exist…
TonyG
  • 1,432
  • 12
  • 31
3
votes
1 answer

The default target Entity Framework version requires the edmx schema version 2.0.0.0 or lower. The specified schema is version 3.0.0.0

I'm pre-generating views in Entity Framework 5.0 with the EdmGen.exe as it follows: "%windir%\Microsoft.NET\Framework\v4.0.30319\EdmGen.exe" /nologo /mode:ViewGeneration /inssdl:"$(TargetDir)Base.ssdl" /incsdl:"$(TargetDir)Base.csdl"…
razp26
  • 191
  • 3
  • 17
2
votes
1 answer

Generating Entity Classes using edmgen

I have a edmx file created using the entity entity framework model. Whenever I make some changes in the edmx(Like removing a column from the entity), I would like to generate the entity classes(Designer.cs). I know I can do this by right clicking…
KhanS
  • 1,167
  • 2
  • 12
  • 27
2
votes
0 answers

Generating edmx file for ef6(entity framework) outside of vs2013

We can generate edmx from database for ef4 using edmgen tool, for ef6 edmx format is changed to v3. Does anybody know how to generate edmx file from database for ef6 outside of visual studio 2013?
Kalva1kk
  • 21
  • 4
1
vote
1 answer

Use EdmGen to generate ssdl, and csdl but NOT generate code?

I am working with a large Entity Framework 4.0 edmx, and need to automate the construction of the edmx. However, I needto maintain the ability to use customized T4 templates. In our edmx, we have code generation set to None, so we can use multiple…
johnsondl1
  • 83
  • 1
  • 5
1
vote
1 answer

How to create EDMX from CSDL+SSDL+MSL files?

I am using EdmGen.exe to automatically generate files: Database.cs Views.cs Concept.csdl Storage.ssdl Mapping.msl How can I generate an EDMX file from all that, so I can include it into my Visual Studio project? I'm trying to automate EDMX update…
vitaly-t
  • 24,279
  • 15
  • 116
  • 138
1
vote
1 answer

Cannot display edmx generated in EdmGen2 in VS10 using .NET 4.0

I'm trying to generate entity model from my Postgresql database. Under .net 3.5 and vs2008 it worked fine. Unfortunately under vs10 it doesn't. I get an error: "The file references an XML namespace that is inconsistend with the target framework…
kyrisu
  • 4,541
  • 10
  • 43
  • 66
1
vote
0 answers

Is it possible to add/modify EntityFramework objects at runtime?

Here's the issue: My database administrator wants to be able to add/remove database objects without requiring a reinstallation of the application, but I want to be able to use the rich data that entity framework provides on the data types returned…
devinbost
  • 4,658
  • 2
  • 44
  • 57
1
vote
0 answers

Entity Framework and PostgreSQL: exception when calling Stored Procedure

I'm trying to interface my PostgreSQL database using Microsoft entity framework. As the npgsql database provider does not integrate into visual studio I'm using the EdmGen tool to generate the interface code from my existing database. The database…
1
vote
0 answers

POCO entity generator or edmgen entityclassgeneration: Performance issues

I am working on a project where performance is a key factor for success. I need to decide whether to use POCO entity generator or not. I might use entityclassgeneration instead of the POCO but I'm not sure if performance may be affected. Another…
razp26
  • 191
  • 3
  • 17
1
vote
1 answer

Purpose of edmgen validation? Comparing SSDL and database schemas?

Not sure what the EDMGEN is validating here It validates the ssdl file against a live database schema looking for inconsistencies)? Ot it only validates the internal consistency between the ssdl, csdl and msl files? If nobody has changed manually…
Eduard
  • 664
  • 2
  • 14
  • 26
1
2