This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, ist there a way set this property as default for a model? I would like to use it in our complete model, but adding (and maintaining) it to all our (100+) Entites would be quite a task. Regards, Dennis |
|
|
I just stumbled upon the following post: http://www.mindscapehq.com/forums/Thread.aspx?ThreadID=4620 I was not able to get this running because my visual studio does not find the dlls. Could you provide a sample project, that uses the t4-feature? Regards, Dennis |
|
|
Hi Dennis, Start with http://www.mindscapehq.com/blog/index.php/2010/04/12/using-t4-templates-with-lightspeed/ -- note in particular the comment about reference paths immediately after the first code snippet. Are these the DLLs your Visual Studio is not finding? |
|
|
From the article I generated the following file: <#@ template inherits="Microsoft.VisualStudio.TextTemplating.VSHost.ModelingTextTransformation" #> <#@ assembly name="Mindscape.LightSpeed.Generator.Model.dll" #> <#@ assembly name="Mindscape.LightSpeed.Generator.Integration.Dsl.Mapping.dll" #> <#@ output extension=".txt" #> <#@ LightSpeedModel processor="LightSpeedModelDirectiveProcessor" requires="fileName='Model.lsmodel'" #> <#@ template debug="false" hostspecific="false" language="C#" #> Entities in model: <# foreach (Entity entity in this.Model.Entities) { #> * <#= entity.Name #> <# } #> |
|
|
It looks like VS2010 changed T4 so it no longer looks in the project reference paths. Specify the path in the assembly directive instead. See the attached project (assumes x64; you'll need to update the paths if on x86).
|
|
|
First: Thanks for the answer and it works on my machine, but ... I have two problems with the solution:
Message = "Unversioned partial updates are not supported with CTI structures" If I translate CTI correctly, it means that concrete table inheritance is currently not supported. As we use CTI massively in our model (read "every class has CTI in its hierarchy.") this feature is absolutely required. Regards, Dennis |
|
|
Regarding the path issue, we do not have control over VS2010 or the T4 implementation. You can raise issues with Microsoft via connect.microsoft.com, or there may be another way to get VS2010/T4 to look at the LightSpeed directory. You could also try copying the DLLs to a project assemblies location and using a relative path -- though I don't know if T4 uses the project folder as its base path. Regarding implementing unversioned partial updates with class table inheritance, we will take a look to see if it is feasible to add support for this. |
|
|
[quote user="ivan"]Regarding implementing unversioned partial updates with class table inheritance, we will take a look to see if it is feasible to add support for this.[/quote] Can you tell anything new about it? |
|
|
Hi Dennis, Unfortunately, this is not something we're going to be able to do in the short term. Given that your design is heavily committed to class table inheritance, I'm afraid you'll have to stick with the normal update strategy. |
|