I am upgrading an LLBLgen 2.0 project to 4.0. It makes extensive use of tdl templates to create DTO and interfaces. I have two schemas in the LLBL project and for whatever reason it was decided that in one schema DTO's would inherit from a custom IDTO and in the other schema they would inherit from a generic one.
Surprisingly this works except where one schema has a foreign key to a table in another schema.
private void InitFields()
{
// initialize related fields -- one to many
<[Foreach RelatedEntity OneToMany]><[If Not MappedFieldRelationIsHidden]>_<[CaseCamel MappedFieldNameRelation]> = new List <<[If StringValueEquals SourceSchemaName "APPBASE"]>I<[EndIf]><[RelatedEntityName]>DTO>();
<[EndIf]><[NextForeach]>
}
This snippet works when the source Entity and the destination entity is in APPBASE. If the source Entity is in APPBASE and the destination is in the other schema it causes some grief.
Is there a token like "SourceSchemaName" which knows the name of the destination schema?
I tried "<[ElementTargetSchemaName]>" but it gives the same value as "SourceSchemaName"
Thanks