예제 #1
0
 public override void OnPreCreateEntity(Net.Vpc.Upa.Callbacks.EntityEvent @event)
 {
     if ([email protected]().IsValidStructureModificationContext())
     {
         throw new Net.Vpc.Upa.Exceptions.InvalidStructureModificationContextException();
     }
 }
예제 #2
0
 public override void OnCreateEntity(Net.Vpc.Upa.Callbacks.EntityEvent @event)
 {
     Net.Vpc.Upa.Impl.DefaultPersistenceUnit defaultPersistenceUnit = (Net.Vpc.Upa.Impl.DefaultPersistenceUnit)@event.GetPersistenceUnit();
     defaultPersistenceUnit.PostponeCommit(new Net.Vpc.Upa.Impl.Persistence.DefaultOnHoldCommitAction(@event.GetEntity(), Net.Vpc.Upa.Impl.OnHoldCommitActionType.CREATE, Net.Vpc.Upa.Impl.DefaultPersistenceUnit.COMMIT_ORDER_ENTITY));
 }