Model Template includes

Model Template includes

Postby Mac » Fri 11 Jun 2010 09:28

Is it possible to use T4 include files in the model templates?

eg.
<#@ include file="myInclude.tt" #>

Thanks
Mac
Mac
 
Posts: 12
Joined: Sun 23 Aug 2009 22:33

Postby AndreyR » Fri 11 Jun 2010 11:46

We plan to implement this functionality on one of the future builds of Entity Developer.
Visit our UserVoice and leave your votes concerning Entity Developer roadmap, we need feedback from our users to know what directions are more important.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Can't get assembly references to work

Postby Mac » Fri 11 Jun 2010 12:43

Will do thanks.

Having a problem getting an assembly reference to work.

It seems that if I I add a project reference it isn't picked up by the template.

The only way I can get to not throw an error so far is by putting the whole file path to the dll (without the dll extension)

ie

<#@ assembly name="MyOther.Project" /> gives a assembly not found error

Adding a file reference path of the external library dll location on the project properties where the template is located also isn't picking it up

only the following doesn't throw an error

<#@ assembly name="c:\MySolution\MyOtherProject\Bin\Debug\MyOther.Project" />

I still can't add the namespace though

<#@ import namespace="MyOther.Project"/> throws a MyOther.Project namespace not found.

Any ideas/examples?
Mac
 
Posts: 12
Joined: Sun 23 Aug 2009 22:33

Postby AndreyR » Fri 11 Jun 2010 14:19

Thank you for the report, we will investigate the situation.
I will let you know about the results.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby AndreyR » Mon 31 Jan 2011 16:49

We have changed the template usage strategy. In the latest build templates are included in our assemblies.
The new build of dotConnect for Oracle 6.10.96 is available for download now.
It can be downloaded here (trial version) or from Registered Users' Area (for users with valid subscription only).
More information is available in this post.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for Oracle