I'm trying the modify the adapter template and I'm not able to add a user code region in a field property setter.
I've added the following lines:
<[ UserCodeRegion "<[EntityFieldName]>" ]>
// __LLBLGENPRO_USER_CODE_REGION_START <[EntityFieldName]>
// __LLBLGENPRO_USER_CODE_REGION_END
<[ EndUserCodeRegion ]>
This results in the following generated code:
public virtual System.String Id
{
get
{
object valueToReturn = base.GetCurrentFieldValue((int)RepairFieldIndex.Id);
if(valueToReturn == null)
{
valueToReturn = TypeDefaultValue.GetDefaultValue(typeof(System.String));
}
return (System.String)valueToReturn;
}
set
{
UserCodeRegion"Id" ]>
// __LLBLGENPRO_USER_CODE_REGION_START Id
// __LLBLGENPRO_USER_CODE_REGION_END
SetNewFieldValue((int)RepairFieldIndex.Id, value);
}
}
Off course this isn't working . Is there a way to modify the template in such a way that I can add a User Code Region in a field setter (or Getter).
Cheers,
Andre