Hi,
I am trying to use the entityAdapter.template to modify my entities so that it looks like they implement interfaces that I generate.
For example, on this following line of code:
public <[If UsePartialClasses]>partial <[EndIf]>class <[CurrentEntityName]>Entity : <[ If IsSubType ]><[ SuperTypeName ]>Entity<[ Else ]>CommonEntityBase<[ EndIf ]>, ISerializable<[Foreach AdditionalInterfaces]>, <[CurrentAdditionalInterface]><[NextForeach]><[ UserCodeRegion "AdditionalInterfaces" ]>
I have tried to add
, I<[CurrentEntityName]>
to the end of it like this:
public <[If UsePartialClasses]>partial <[EndIf]>class <[CurrentEntityName]>Entity : <[ If IsSubType ]><[ SuperTypeName ]>Entity<[ Else ]>CommonEntityBase<[ EndIf ]>, ISerializable<[Foreach AdditionalInterfaces]>, <[CurrentAdditionalInterface]><[NextForeach]><[ UserCodeRegion "AdditionalInterfaces" ]>, I<[CurrentEntityName]>
What I want is the say for example the Entity is named Orders, it will looks like the following:
public partial class OrdersEntity : CommonEntityBase, ISerializable, IOrdersEntity
However, nothing is generated at all.
I have modified the file successfully before. In a related matter, I was able to add the interfaces' namespace to the beginning of the entity's class file by adding:
using <[RootNamespace]>.EntityContracts;
to the top of the file.
However, in this case this insertion method has not worked. Can anyone see what I have done wrong here?
Thanks,
Sam.