Giter Club home page Giter Club logo

Comments (20)

ErikEJ avatar ErikEJ commented on August 16, 2024 2

@ladeak just use my well tested and supported runtime package, you could be in for a long wait. https://www.nuget.org/packages/ErikEJ.EntityFramework.SqlServer

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024 1

@ladeak Indirectly? (Just a sample of an isolated test that now fails, and did not before)

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024 1

@ladeak a 6.5 preview package is available now

@ajcvickers @SamMonoRT feel free to close this, no repro code provided and it relates to my project, not this

from ef6.

ajcvickers avatar ajcvickers commented on August 16, 2024

/cc @SamMonoRT

from ef6.

ladeak avatar ladeak commented on August 16, 2024

I have tried both using https://www.nuget.org/packages/ErikEJ.EntityFramework.SqlServer from @ErikEJ and building this repository.
When I built the main branch of this repository, I noticed a few "breaking" changes that were captured by unit tests, but they were mostly on some arguments being validated against null values or some types now require Database.SetConfiguration(...) call. Nothing that could not be worked around.

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024

@ladeak Can you share more details? Maybe something that needs to be fixed?

from ef6.

ladeak avatar ladeak commented on August 16, 2024

Sure, let me come back to this on Monday.

from ef6.

ladeak avatar ladeak commented on August 16, 2024
  1. DbFunctionCommandTree requires a non-null MetadataWorkspace argument
  2. DbContext.ChangeTracker.DetectChanges() requires Database.SetConfiguration() to be invoked upfront.

Note, that the same changes are not required when using ErikEJ.EntityFramework.SqlServer package, but only when I try to build EF6 from the main branch.

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024

@ladeak Could you share a log or call stack?

from ef6.

ladeak avatar ladeak commented on August 16, 2024

DbFunctionCommandTree is straightforward, it throws in the base ctor (DbCommandTree).

ChangeTracker.DetectChanges() goes as

  • InternalContext.DetectChanges
  • LazyInternalContext.DetectChanges
  • InternalContext.Initialize
  • LazyInternalContext.InitializeContext
  • RetryLazy...GetValue
  • LazyInternalContext.CreateModel
  • DbModelBuilder.Build
  • Provider Connection.GetProviderInfo

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024

@ladeak Sorry, I do not follow - is this when you build the Microsoft.EntityFramework.SqlServer project locally?

from ef6.

ladeak avatar ladeak commented on August 16, 2024

When I build the main branch of EF6 locally with Microsoft Entityframework.SqlClient enabled and use it as a package, then some of my unit tests are breaking at test execution time with exceptions that were previously not present.
I had workaround for all of them in my tests, but I thought it might worth bringing this up.

from ef6.

ErikEJ avatar ErikEJ commented on August 16, 2024

@ladeak Are you abe to share the failing tests? Maybe it is something that need to be fixed in the new EF Provider?

from ef6.

ladeak avatar ladeak commented on August 16, 2024

I am afraid I cannot share the code directly.

from ef6.

ladeak avatar ladeak commented on August 16, 2024

The first case is relatively simple in a unit test:

new DbFunctionCommandTree(null, ... );

the second case is a bit trickier to describe: we create custom DbContext and invoke one of its methods which eventually calls ChangeTracker.DetectChanges() in the unit test.

from ef6.

SamMonoRT avatar SamMonoRT commented on August 16, 2024

Closing as per comment above.

from ef6.

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.