Ejemplo n.º 1
0
        public UpdateFields <T> Set <TValue1>(Expression <Func <T, TValue1> > e, object value)
        {
            MemberBuilderVisitor visitor = new MemberBuilderVisitor();

            visitor.Visit(e);
            Parameters.Add(visitor.GetMemberName(), value);
            return(this);
        }
Ejemplo n.º 2
0
 public void Select <TValue1>(params Expression <Func <T, TValue1> >[] fields)
 {
     foreach (var field in fields)
     {
         MemberBuilderVisitor visitor = new MemberBuilderVisitor();
         visitor.Visit(field);
         _Fields.Add(visitor.GetMemberName());
     }
 }