public static EntityMemberMap MemberMap2(object entity, PropertyInfo Member, EntityRequest.Operator Operator = EntityRequest.Operator.Equal, EntityRequest.LogicSymbol LogicSymbol = EntityRequest.LogicSymbol.And) { return(new EntityMemberMap() { MemberName = Member.Name, MemberValue = Member.GetValue(entity, null), Operator = Operator, LogicSymbol = LogicSymbol }); }
public static MemberDataMap DataMap <T>(string DataFieldName, Expression <Func <T> > e, EntityRequest.Operator Operator = EntityRequest.Operator.Equal) { return(new MemberDataMap() { MemberName = GetName(e), DataFieldName = DataFieldName, Operator = Operator }); }
public static EntityMemberMap MemberMap <T>(object MemberValue, Expression <Func <T> > e, EntityRequest.Operator Operator = EntityRequest.Operator.Equal, EntityRequest.LogicSymbol LogicSymbol = EntityRequest.LogicSymbol.And) { return(new EntityMemberMap() { MemberName = GetName(e), MemberValue = MemberValue, Operator = Operator, LogicSymbol = LogicSymbol }); }
public EntityPostRequest AppendConditionMap <T>(object MemberValue, Expression <Func <T> > e, EntityRequest.Operator Operator = EntityRequest.Operator.Equal, EntityRequest.LogicSymbol LogicSymbol = EntityRequest.LogicSymbol.And) { this._ConditionMap.Add(MemberHelper.MemberMap(MemberValue, e, Operator, LogicSymbol)); return(this); }
public EntityQueryRequest <T> SetOrderByMember <Member>(object MemberValue, Expression <Func <Member> > e, EntityRequest.Operator Operator = EntityRequest.Operator.Equal) { this.OrderByMember = MemberHelper.MemberMap(MemberValue, e, Operator); return(this); }