Hi, another problem with a Migration of my project, in this case is the work of the extensions parsing the MList
notification, in my scenario:
tempBlah = new EmailTemplateEntity
{
Active = true,
Name = "Liquidaciones Blah",
From = new EmailTemplateContactEntity
{
DisplayName = "Blah Hispania",
EmailAddress = "[email protected]"
},
StartDate = DateTime.Now.TrimToMinutes(),
IsBodyHtml = true,
SystemEmail = SystemEmailLogic.ToSystemEmailEntity(typeof(LiquidacionesColaboradoresMail)),
Query = QueryLogic.GetQueryEntity(typeof(SettlementEntity)),
Messages =
{
new EmailTemplateMessageEntity(CultureInfoLogic.GetCultureInfoEntity("es"))
{
//Template = tempAMV,
Subject = "Informe Blah @[Entity.CreationDate.Date]",
Text = @"<p>Estimado @[Supplier.FiscalEntity.FiscalName],<p><br/> Blah Blah"
}
}
}.Save();
}
[NotNullable]
MList<EmailTemplateMessageEntity> messages;
[NotifyCollectionChaMessages nged, NotifyChildProperty]
public MList<EmailTemplateMessageEntity> Messages
{
get
{
if (messages == null) Messages = new MList<EmailTemplateMessageEntity>();
return messages;
}
set { Set(ref messages, value); }
}
in bad practice now corrects the notification, but seems a potencial bug in the framework parsing the .SetParentEntity()
in the MList
...