Example #1
0
 public KeyPredicate(ushort id, KeyPredicateType type, DateTime value)
 {
     Type  = type;
     Value = new EntityMember()
     {
         Id            = id,
         DateTimeValue = value,
         MemberType    = EntityMemberType.DataField,
         ValueType     = EntityFieldType.DateTime
     };
     Value.Flag.HasValue = true;
 }
Example #2
0
        internal EntityMember            Value; //TODO:考虑AnyValue

        public KeyPredicate(ushort id, KeyPredicateType type, string value)
        {
            Type  = type;
            Value = new EntityMember()
            {
                Id          = id,
                ObjectValue = value,
                MemberType  = EntityMemberType.DataField,
                ValueType   = EntityFieldType.String
            };
            Value.Flag.HasValue = value != null;
        }