support for EF 2.0 and self tracking entities
support for EF 2.0 and self tracking entities
We want to use the new version of EF and its support for self tracking entities. We use the devart dotconnect provider for oracle. With the Microsoft Entity Designer we have success creating an Entity Model and adding the self tracking Entity generator. But the Devart Entity Designer only produces an EDMX/EDML file with the header
So the self tracking entities templates are not working.
Microsoft Entity Designer produces an EDMX file with Version="2.0".
Will there support for version 2.0 in a new version of the devart entity designer?
Thanks, Michael
So the self tracking entities templates are not working.
Microsoft Entity Designer produces an EDMX file with Version="2.0".
Will there support for version 2.0 in a new version of the devart entity designer?
Thanks, Michael
Please make sure that you have set the Entity Framework version property to ".Net Framework 4.0".
We plan to add support for the Self-Tracking Entities in one of the future builds.
At the moment you can use the following workaround.
Go to the
and change
to
and save the file.
In case you are using VB.NET you should perform these operations with the EF.Utility.VB.ttinclude file.
We plan to add support for the Self-Tracking Entities in one of the future builds.
At the moment you can use the following workaround.
Go to the
Code: Select all
%Program Files%\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude
Code: Select all
if (extension.Equals(".edmx", StringComparison.InvariantCultureIgnoreCase))
Code: Select all
if (extension.Equals(".edmx", StringComparison.InvariantCultureIgnoreCase) || extension.Equals(".edml", StringComparison.InvariantCultureIgnoreCase))
In case you are using VB.NET you should perform these operations with the EF.Utility.VB.ttinclude file.
-
- Posts: 13
- Joined: Sun 15 Aug 2010 11:08
Andrey,
I updated EF.Utility.CS.ttinclude as you suggested, so now it accepts EDML extension in addition to EDMX. But I can't figure out how can I trigger it for a Devart entity model. If I generate an ADO.NET Entity Model, then I can right click in a model and select "Add Code Generation Item". But this option is not available if I select an EF model generated with Devart Entity Developer. How can I then configure a T4 template for Devart entity model?
I updated EF.Utility.CS.ttinclude as you suggested, so now it accepts EDML extension in addition to EDMX. But I can't figure out how can I trigger it for a Devart entity model. If I generate an ADO.NET Entity Model, then I can right click in a model and select "Add Code Generation Item". But this option is not available if I select an EF model generated with Devart Entity Developer. How can I then configure a T4 template for Devart entity model?