示例#1
0
        internal static IProjection ProcessAsEntity(MethodCallExpression methodCallExpression)
        {
            var expression = methodCallExpression.Arguments[0];
            var aliasName  = ExpressionProcessor.FindMemberExpression(expression);

            return(Projections.Entity(expression.Type, aliasName));
        }
示例#2
0
        internal static IProjection ProcessAsEntity(MethodCallExpression methodCallExpression)
        {
            var expression = methodCallExpression.Arguments[0];
            var aliasName  = ExpressionProcessor.FindMemberExpression(expression);

            return
                (string.IsNullOrEmpty(aliasName)
                                        ? Projections.RootEntity()
                                        : Projections.Entity(expression.Type, aliasName));
        }