zzzprojects / EntityFramework-Plus

Entity Framework Plus extends your DbContext with must-haves features: Include Filter, Auditing, Caching, Query Future, Batch Delete, Batch Update, and more
https://entityframework-plus.net/
MIT License
2.27k stars 318 forks source link

Use SetDynamic execute WhereDynamic #796

Closed XiaoBaiXJ closed 6 months ago

XiaoBaiXJ commented 7 months ago
     query = query.WhereDynamic(x => $"x.{filter.PropertyName} == y)", new { y = filter.Val })

Error reporting An item with the same key has already been added. Key: x

XiaoBaiXJ commented 7 months ago

image

JonathanMagnan commented 7 months ago

Hello @XiaoBaiXJ ,

Thank you for reporting. We will look into it.

Best Regards,

Jon

XiaoBaiXJ commented 7 months ago

image

XiaoBaiXJ commented 7 months ago

Using date type for querying will result in an error message

JonathanMagnan commented 7 months ago

Hello @XiaoBaiXJ ,

Do you think you could create a runnable project with the issue? It doesn’t need to be your project, just a new solution with the minimum code to reproduce the issue. You can send it in private here: info@zzzprojects.com

My developer told me he tried to reproduce your issue but failed. For him, everything work so we are surely missing something to be able to reproduce the same error as you.

Best Regards,

Jon

JonathanMagnan commented 7 months ago

Hello @XiaoBaiXJ ,

Since our last conversation, we haven't heard from you.

As previously mentioned, we would need a runnable project to be able to assist you.

Looking forward to hearing from you, Jon

JonathanMagnan commented 6 months ago

Hello @XiaoBaiXJ,

Unfortunately, since we didn't hear from you I will close this issue.

As previously mentioned, we need a runnable project to be able to assist you.

We will reopen the issue if a project is received.

Feel free to contact us for questions, issues, or feedback.

Best Regards,

Jon