In 5.4 selfservicing templates (entity.template) the deserialization constructor is empty:
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected <[CurrentEntityName]>Entity(SerializationInfo info, StreamingContext context):base(info, context)
{<[ UserCodeRegion "DeserializationConstructor" ]>
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END<[ EndUserCodeRegion ]>
}
In addition GetObjectData for serialization does not exist anymore in entityInclude.template. This breaks binary serialization and deserialization. More worrysome user code in the User code region of "GetObjectData" is thrown away as the entire method vanishes on generation, including user code.