/// <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); }
public IdExpression Id(MemberInfo idMember) { Guard.NotNull(idMember, "idMember"); var exp = new IdExpression(); members[idMember] = exp.attribute; return(exp); }