Example #1
0
        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);
        }
Example #2
0
 public static void insert(VariableInstanceEntity variableInstance)
 {
     if (!variableInstance.Transient)
     {
         Context.CommandContext.DbEntityManager.insert(variableInstance);
     }
 }
Example #3
0
        public static VariableInstanceEntity createAndInsert(string name, TypedValue value)
        {
            VariableInstanceEntity variableInstance = create(name, value, value.Transient);

            insert(variableInstance);
            return(variableInstance);
        }
Example #4
0
 public CallableAnonymousInnerClass(VariableInstanceEntity outerInstance, TypedValue updatedValue)
 {
     this.outerInstance = outerInstance;
     this.updatedValue  = updatedValue;
 }