public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } VariableInstanceEntity other = (VariableInstanceEntity)obj; if (string.ReferenceEquals(id, null)) { if (!string.ReferenceEquals(other.id, null)) { return(false); } } else if (!id.Equals(other.id)) { return(false); } return(true); }
public static void insert(VariableInstanceEntity variableInstance) { if (!variableInstance.Transient) { Context.CommandContext.DbEntityManager.insert(variableInstance); } }
public static VariableInstanceEntity createAndInsert(string name, TypedValue value) { VariableInstanceEntity variableInstance = create(name, value, value.Transient); insert(variableInstance); return(variableInstance); }
public CallableAnonymousInnerClass(VariableInstanceEntity outerInstance, TypedValue updatedValue) { this.outerInstance = outerInstance; this.updatedValue = updatedValue; }