Ejemplo n.º 1
0
        /// <summary>
        /// 设置主键
        /// </summary>
        /// <param name="fnMember"></param>
        /// <returns></returns>
        public IdExpression Id(Expression <Func <TEntity, object> > fnMember)
        {
            var exp = new IdExpression();

            members[GetMember(fnMember)] = exp.attribute;
            return(exp);
        }
Ejemplo n.º 2
0
        public IdExpression Id(MemberInfo idMember)
        {
            Guard.NotNull(idMember, "idMember");
            var exp = new IdExpression();

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