Example #1
0
        /// <summary>
        /// 设置版本列
        /// </summary>
        /// <param name="fnMember"></param>
        /// <returns></returns>
        public VersionExression Version(Expression <Func <TEntity, object> > fnMember)
        {
            var exp = new VersionExression();

            members[GetMember(fnMember)] = exp.attribute;
            return(exp);
        }
Example #2
0
        /// <summary>
        /// 设置列
        /// </summary>
        /// <param name="member"></param>
        /// <returns></returns>
        public VersionExression Version(MemberInfo member)
        {
            Guard.NotNull(member, "member");
            var exp = new VersionExression();

            members[member] = exp.attribute;
            return(exp);
        }