Giter Site home page Giter Site logo

Comments (6)

JonathanMagnan avatar JonathanMagnan commented on June 2, 2024 1

Hello @TobiasMarklund ,

Thank you for reporting.

We tried the same Fiddle without our library and as expected, there is no CAST.

We will look at why this cast happen in the library

Best Regards,

Jonathan


Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework ExtensionsEntity Framework ClassicBulk OperationsDapper Plus

Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval FunctionSQL Eval Function

from entityframework.dynamicfilters.

JonathanMagnan avatar JonathanMagnan commented on June 2, 2024

Hello @TobiasMarklund ,

We looked at it this weekend, however, we didn't succeed to find a solution.

We tried to move some code but unfortunately, the cast was always required at the end when comparing both DbExpression.

So unless you have found something on your side that might worth to investigate, I believe we will close this issue since we have not found an alternative way to make it works without the cast.

from entityframework.dynamicfilters.

TobiasMarklund avatar TobiasMarklund commented on June 2, 2024

Seems like it is the C# compiler which adds that cast for unknown reasons.
I have been experimenting with modifying Binary equality expressions in the LambdaToDbExpressionVisitor where I check if one operand is a converted byte enum and if the other operand is also possible to convert to byte to make a new BinaryExpression with byte operands.

I can make a pull request with my attempt.

from entityframework.dynamicfilters.

TobiasMarklund avatar TobiasMarklund commented on June 2, 2024

Why did you close this?

from entityframework.dynamicfilters.

JonathanMagnan avatar JonathanMagnan commented on June 2, 2024

Oops! Sorry,

The issue was marked as to be "closed" but the status was not updated with your last answer. So we closed it by mistake ;(

Now opened ;)

from entityframework.dynamicfilters.

JonathanMagnan avatar JonathanMagnan commented on June 2, 2024

Hello @TobiasMarklund ,

Thank you for your contribution.

The v3.1.1 has been released. It includes your both pull requests.

from entityframework.dynamicfilters.

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.