Example #1
0
 public virtual bool BeforeInsert(object @object)
 {
     NeoDatis.Odb.Test.Trigger.SimpleObject so = (NeoDatis.Odb.Test.Trigger.SimpleObject
                                                  )@object;
     // just add 1
     so.SetId(so.GetId() + 1);
     return(true);
 }
Example #2
0
 // TODO Auto-generated method stub
 public override bool BeforeUpdate(NeoDatis.Odb.ObjectRepresentation oldObjectRepresentation
                                   , object newObject, NeoDatis.Odb.OID oid)
 {
     NeoDatis.Odb.Test.Trigger.SimpleObject so = (NeoDatis.Odb.Test.Trigger.SimpleObject
                                                  )newObject;
     // just add 1
     so.SetId(so.GetId() + 1);
     return(true);
 }