public virtual void Save(Context context) { if (description != null) { description.Persist(context); } }
public virtual void Save(Context context) { if (title != null) { title.Persist(context); } if (description != null) { description.Persist(context); } if (onEnterRule != null) { onEnterRule.Save(context); } if (onExitRule != null) { onExitRule.Save(context); } if (rollbackRule != null) { rollbackRule.Save(context); } context.PersistenceSession.SaveOrUpdate(this); //foreach (StateTransition t in transitions) // t.Save(context); }
public virtual void Save(Context context) { if (AddressNo != null) { AddressNo.Persist(context); } if (Building != null) { Building.Persist(context); } if (Street1 != null) { Street1.Persist(context); } if (Street2 != null) { Street2.Persist(context); } if (regionLevel1Name != null) { regionLevel1Name.Persist(context); } if (regionLevel2Name != null) { regionLevel2Name.Persist(context); } if (regionLevel3Name != null) { regionLevel3Name.Persist(context); } context.PersistenceSession.SaveOrUpdate(this); }
public virtual void Save(Context context) { this.updatedTS = DateTime.Now; if (creationRule != null) { creationRule.Save(context); } if (validationRule != null) { validationRule.Save(context); } if (rollbackRule != null) { rollbackRule.Save(context); } if (title != null) { title.Persist(context); } if (shortTitle != null) { shortTitle.Persist(context); } if (description != null) { description.Persist(context); } //if (this.statefulEntityTypeID == 0) // context.Persist(this); //else // context.PersistenceSession.Update(this); foreach (State s in states) { s.Save(context); } foreach (State s in states) { foreach (StateTransition transition in s.Transitions) { transition.Save(context); } } }
//public virtual RuleResult PostTransit(ParameterList parameters) //{ // RuleResult result = RuleResult.Success; // if (toState != null) result = toState.OnEnter(parameters); // return result; //} public virtual void Save(Context context) { //if (fromState != null) fromState.Save(context); //if (toState != null) toState.Save(context); if (transitionRule != null) { transitionRule.Save(context); } if (title != null) { title.Persist(context); } context.PersistenceSession.SaveOrUpdate(this); }
/*nattapong 21-3-51*/ public virtual void Save(Context context) { if (Title != null) { title.Persist(context); } if (ShortTitle != null) { shortTitle.Persist(context); } context.PersistenceSession.SaveOrUpdate(this); foreach (TreeListNode n in children) { n.Save(context); } }