Ejemplo n.º 1
0
        internal static IProjection ProcessAsEntity(MethodCallExpression methodCallExpression)
        {
            var expression = methodCallExpression.Arguments[0];
            var aliasName  = ExpressionProcessor.FindMemberExpression(expression);

            return(Projections.Entity(expression.Type, aliasName));
        }
Ejemplo n.º 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));
        }