Ejemplo n.º 1
0
        public static MemberAccessExpressionBuilderBase MemberAccess(Type elementType, string memberName,
                                                                     bool liftMemberAccess)
        {
            MemberAccessExpressionBuilderBase expressionBuilderBase = MemberAccess(elementType, null, memberName);

            expressionBuilderBase.Options.LiftMemberAccessToNull = liftMemberAccess;
            return(expressionBuilderBase);
        }
Ejemplo n.º 2
0
        public static MemberAccessExpressionBuilderBase MemberAccess(IQueryable source, Type memberType,
                                                                     string memberName)
        {
            MemberAccessExpressionBuilderBase expressionBuilderBase = MemberAccess(source.ElementType, memberType,
                                                                                   memberName);

            expressionBuilderBase.Options.LiftMemberAccessToNull =
                QueryProviderExtensions.IsLinqToObjectsProvider(source.Provider);
            return(expressionBuilderBase);
        }