Banane wrote:
it doesn't sound very easy to do!
I guess I have to download the template studio to do that?
I'm using self-servicing
No, it's very easy. You can do it in notepad if you'd like.
(selfservicing, C#, SqlServer). If you're using VB.NET, you've to replace C# with VB.NET here and there
- go to <llblgen pro folder>\drivers\sqlserver\templates
- create a copy of CSharpTemplateSet.config and call it MyCSharpTemplateSet.config
- open MyCSharpTemplateSet.config in notepad
- Alter the <name> tag so you will recognize it in LLBLGen Pro
- Right below the last templateBinding tag, you add:
<templateBinding templateID="Custom_EntityBaseTemplate" templateFilename="......\SharedTemplates\C#\myEntityInclude.template" />
and save the file
- goto <llblgen pro folder>\SharedTemplates\C# and add a textfile called myEntityInclude.template.
- open myEntityInclude.template in notepad and add:
public new Guid ObjectID
{
get { return base.ObjectID;}
}
and save the file.
voila
. Now use the template set config you've just created (recognizable by the changed name tag value) and you'll get that property in every entity class.