Error when generating with the DbContext template

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
delarou
Posts: 15
Joined: Thu 07 Apr 2011 15:12

Error when generating with the DbContext template

Post by delarou » Tue 26 Jul 2011 16:33

I just installed the latest version of Entity Developer 4.0.15, and when I try to generate using the DbContext template, I get the following error:
An error occurred during an attempt to compile the template 'DbContext'.
Error List:
error : 'EntityDeveloper.Mapping.IDbColumn' does not contain a definition for 'Column' and no extension method 'Column' accepting a first argument of type 'EntityDeveloper.Mapping.IDbColumn' could be found (are you missing a using directive or an assembly reference?)
Note that the other templates (POCO & Self-Tracking) are working!

Christoph

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Wed 27 Jul 2011 12:39

Thank you for the report. This is a known issue, which will be fixed in the nearest build. At the moment, you can manually change the DbContext template as a workaround: find the 'columnMap.Column.Column' entry in the template, and replace it with 'columnMap.Column.Name'.

ycourbier
Posts: 2
Joined: Tue 02 Aug 2011 13:40

Post by ycourbier » Tue 02 Aug 2011 13:52

Would you please let me know where this template resides. For some reason, I can't find it on my Windows 7 64-bit box.

ycourbier
Posts: 2
Joined: Tue 02 Aug 2011 13:40

Post by ycourbier » Tue 02 Aug 2011 14:18

OK, got it! I was lookign for a file. Then I read the documentation!

For those of you who may have the same struggle, you need to expand the Templates node in the Model Explorer, then select the DbContext template. You cannnot edit it as is so you need to right-click, copy to Model and then you will be able to edit it.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Wed 03 Aug 2011 16:55

We have released the new 4.0.24 version of Entity Developer, which includes the fixed template. The new build can be downloaded from
http://www.devart.com/entitydeveloper/download.html
(the trial version only) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/

For more information about the fixes available in the new build, please refer to
http://www.devart.com/forums/viewtopic.php?t=21604

Post Reply