public override bool BeforeUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { _object = newObject; _oid = oid; return(true); }
public override bool BeforeUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { var so = (SimpleObject) newObject; // just add 1 so.SetId(so.GetId() + 1); return true; }
public override bool BeforeUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { var so = (SimpleObject)newObject; // just add 1 so.SetId(so.GetId() + 1); return(true); }
public static NonNativeObjectInfo GetNnoi(IObjectRepresentation objectRepresentation) { var defaultObjectRepresentation = objectRepresentation as ObjectRepresentation; if (defaultObjectRepresentation != null) return defaultObjectRepresentation.GetNnoi(); throw new OdbRuntimeException( NDatabaseError.InternalError.AddParameter(string.Format("getNnoi not implemented for {0}", objectRepresentation.GetType().FullName))); }
public static NonNativeObjectInfo GetNnoi(IObjectRepresentation objectRepresentation) { var defaultObjectRepresentation = objectRepresentation as ObjectRepresentation; if (defaultObjectRepresentation != null) { return(defaultObjectRepresentation.GetNnoi()); } throw new OdbRuntimeException( NDatabaseError.InternalError.AddParameter(string.Format("getNnoi not implemented for {0}", objectRepresentation.GetType().FullName))); }
public override void AfterUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { throw new NotImplementedException(); }
/// <summary> /// Action which will happen after update /// </summary> /// <param name="oldObjectRepresentation">Object representation</param> /// <param name="newObject">Updated object</param> /// <param name="oid">Oid of updated object</param> public abstract void AfterUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid);
/// <summary> /// Action which will happen before update /// </summary> /// <param name="oldObjectRepresentation">Object representation</param> /// <param name="newObject">Updated object</param> /// <param name="oid">Oid of updated object</param> /// <returns>True if updated, in other case false</returns> public abstract bool BeforeUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid);
public override void AfterUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { _object = newObject; _oid = oid; }
public override void AfterUpdate(IObjectRepresentation oldObjectRepresentation, object newObject, OID oid) { }