Giter Site home page Giter Site logo

Comments (3)

dragonlus avatar dragonlus commented on June 2, 2024

I use MiniProfiler trace the sql,like this:
first client_id =1, excute Context.Set.Find("201908021506517490038605f1cc986") the sql is :
SELECT
[Extent1].[modl_id] AS [modl_id],
[Extent1].[modl_type] AS [modl_type],
[Extent1].[modl_code] AS [modl_code],
[Extent1].[modl_name] AS [modl_name],
FROM [dbo].[Module] AS [Extent1]
WHERE ([Extent1].[client_id] = 1) AND modl_id='201908021506517490038605f1cc986'
when I changed client_id=2 ,excute Context.Set.Find("201908021506517490038605f1cc986") the sql still is:
SELECT
[Extent1].[modl_id] AS [modl_id],
[Extent1].[modl_type] AS [modl_type],
[Extent1].[modl_code] AS [modl_code],
[Extent1].[modl_name] AS [modl_name],
FROM [dbo].[Module] AS [Extent1]
WHERE ([Extent1].[client_id] = 1) AND modl_id='201908021506517490038605f1cc986'
I excute Context.Set().take(1).ToList(),the sql is:
SELECT
[Extent1].[modl_id] AS [modl_id],
[Extent1].[modl_type] AS [modl_type],
[Extent1].[modl_code] AS [modl_code],
[Extent1].[modl_name] AS [modl_name],
FROM [dbo].[Module] AS [Extent1]
WHERE ([Extent1].[client_id] = 2) AND modl_id='201908021506517490038605f1cc986'
why?

from entityframework.dynamicfilters.

dragonlus avatar dragonlus commented on June 2, 2024

I use EntityFramework 6.2.0
Z.EntityFramework.Plus.EF6 1.8.21

from entityframework.dynamicfilters.

JonathanMagnan avatar JonathanMagnan commented on June 2, 2024

Hello @dragonlus ,

Do you think you could provide a project sample with this issue?

It will help my developer investigate the issue more efficiently.

We now always ask for a project sample even if the issue is easy to reproduce. As a free product, we must find some way to save time to offer an overall better experience for everyone and release fixes faster.

You can send it to: [email protected] if you need to keep the source private

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.

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.