internal static IProjection ProcessAsEntity(MethodCallExpression methodCallExpression) { var expression = methodCallExpression.Arguments[0]; var aliasName = ExpressionProcessor.FindMemberExpression(expression); return(Projections.Entity(expression.Type, aliasName)); }
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)); }