Giter Site home page Giter Site logo

Comments (5)

StefH avatar StefH commented on May 21, 2024

please verify

from system.linq.dynamic.core.

rpaschoal avatar rpaschoal commented on May 21, 2024

Hello @StefH,

Thanks for the quick reply and change to the API.

I can see the signature is a little bit different. This is how I use on the original Linq.Dynamic:

System.Linq.Dynamic.DynamicExpression.ParseLambda<Entity, bool>(expression, null)

Where "Entity" is the type of the code-first entity and "expression" is a string with many linq expressions.

Following your API, would this produce the same output?

System.Linq.Dynamic.Core.DynamicExpression.ParseLambda(false, typeof(Entity), typeof(bool), expression, null)

Oh, by the way, after calling that I had to parse a LinqExpression to an Expression using this:

var typedExpression1 = (Expression<Func<Entity, bool>>) Expression.Lambda(expression1, null);

Now it compiles, not sure if it works yet. Need to test it.

Thanks!

from system.linq.dynamic.core.

StefH avatar StefH commented on May 21, 2024

Correct, I changed the interface and the internal business logic a bit.

When calling the new API, just use
DynamicExpression.ParseLambda(false, typeof(Entity), null, expression)

See https://system-linq-dynamic-core.azurewebsites.net/html/938537c7-8fa2-b300-1f27-5aadcd5440e5.htm for details:

from system.linq.dynamic.core.

rpaschoal avatar rpaschoal commented on May 21, 2024

Thanks Mate,

I have simplified my call.

Cheers 👍

from system.linq.dynamic.core.

StefH avatar StefH commented on May 21, 2024

Note that in the latest version, this class has been renamed to DynamicExpressionParser to avoid naming conflicts.

from system.linq.dynamic.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.