tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

EdmGen2 for .NET 4.5 and Entity Framework 5

3 Jun 2013 2 mins .NET, C#, Entity Framework

I don’t know whether somebody remembers or even uses EdmGen2. I hope it does. Anyway I was doing my Entity Framework course last week and demoing pre-generating views to speed up the startup. Here the EdmGen2 tool comes handy because it’s able to work with EDMX file directly. You don’t have to split it into SSDL, CSDL and MSL to use the standard EdmGen tool. Because I was working in Visual Studio 2012 by default I was working with Entity Framework 5 and .NET 4.5. Model from this version(s) doesn’t work with old EdmGen2. I checked the original site and sure, the last version (in time of writing) is from 2010.

So I grabbed the sources and did changes to work with Entity Framework 5 and on .NET 4.5. Also improved few pieces in code to handle another version(s) properly. Because the original site seems to be dead and the sources are directly downloadable (you’re not downloading binary), I imported there into repository under my BitBucket account. You can find all the changes in EdmGen2 repository. If you download the code, open in Visual Studio 2012 and compile, you’ll get working binary ready to be used on .NET 4.5 with Entity Framework from v1 through v4 to v5. 😃

If you’re using this tool, please, drop a line in comments. Maybe it could be merged with Entity Framework sources and be maintained directly by team. Or at least I’ll know it’s worth to update it to support Entity Framework 6 (by the way view generation speed was improved in Entity Framework 6).

Follow-up post.

Profile Picture Jiří Činčura is .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he contributes to open-source, i.e. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at