public void ResolveUpdateField <T, TKey, TSource>(Expression <Func <T, TKey> > expression, TSource obj)
        {
            SetBuilder <T>(SqlTextType.Update);
            var node = this.Visit(expression.Body);

            builder.BuildUpdateField((dynamic)node, obj, false);
        }
示例#2
0
        public void ResolveField <T, TKey, TSource>(Expression <Func <T, TKey> > expression, TSource obj)
        {
            this.resolveType  = typeof(T);
            builder.SqlType   = SqlTextType.Update;
            builder.TableType = resolveType;
            var nodes = ResolveField(expression.Body);

            builder.BuildUpdateField(nodes, obj);
        }