Пример #1
0
 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
     });
 }
Пример #2
0
 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
     });
 }
Пример #3
0
 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
     });
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }