Exemplo n.º 1
0
        public UpdateBuilder <T> Set(Expression <Func <T, object> > select, object value)
        {
            SimpleSelection selection = BuilderHelper.ParseSimpleSelection(select);

            if (selection != null)
            {
                CurrentQuery.Assignments.Add(new Assignment(selection, GenerateBindMarker(value)));
            }

            return(this);
        }
Exemplo n.º 2
0
        public DeleteBuilder <T> Delete(params Expression <Func <T, object> >[] selects)
        {
            if (selects != null)
            {
                foreach (Expression <Func <T, object> > select in selects)
                {
                    SimpleSelection selection = BuilderHelper.ParseSimpleSelection(select);

                    if (selection != null)
                    {
                        CurrentQuery.Selections.Add(selection);
                    }
                }
            }

            return(this);
        }