Werden Teil-Datensätze hinzugefügt oder entfernt werden ebenfalls Events ausgelöst.
public override void OnSubRecordAdded(OrmBABase orm, string propertyName, OrmSubRecordBase subRecord)
{
OrmMyDataTable myDataTable = (OrmMyDataTable)orm;
if (propertyName == nameof(OrmMyDataTable.SubDatas))
{
OrmSubDataTable subData = (OrmSubDataTable)subRecord;
}
}
public override void OnSubRecordRemoved(OrmBABase orm, string propertyName, OrmSubRecordBase subRecord)
{
OrmMyDataTable myDataTable = (OrmMyDataTable)orm;
if (propertyName == nameof(OrmMyDataTable.SubDatas))
{
OrmSubDataTable subData = (OrmSubDataTable)subRecord;
}
}