void ITransactedModelEvent.Rollback(ModelTransaction transaction)
{
Prepare(transaction);
ModelEventScope.Perform(() =>
{
ModelContext context = Instance.Type.Context;
ModelInstanceList list = Instance.GetList(Property);
if (Added != null)
{
foreach (ModelInstance item in Added)
{
list.Remove(item);
}
}
if (Removed != null)
{
foreach (ModelInstance item in Removed)
{
list.Add(item);
}
}
});
}