Comments (20)
@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.
@ladeak Indirectly? (Just a sample of an isolated test that now fails, and did not before)
from ef6.
@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.
/cc @SamMonoRT
from ef6.
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.
@ladeak Can you share more details? Maybe something that needs to be fixed?
from ef6.
Sure, let me come back to this on Monday.
from ef6.
DbFunctionCommandTree
requires a non-nullMetadataWorkspace
argumentDbContext.ChangeTracker.DetectChanges()
requiresDatabase.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.
@ladeak Could you share a log or call stack?
from ef6.
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.
@ladeak Sorry, I do not follow - is this when you build the Microsoft.EntityFramework.SqlServer project locally?
from ef6.
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.
@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.
I am afraid I cannot share the code directly.
from ef6.
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.
Closing as per comment above.
from ef6.
Related Issues (20)
- Entity Framework 6 Package Manager Error - Unrecognized command or argument 'C#' HOT 1
- edmx HOT 1
- Simple Bug Solution Path is LowerCase: HOT 1
- Visual Studio DB Save Changes HOT 1
- Bulk Insert/Update from C# .Net 4.8 HOT 1
- Package Manager Console doesn't take configuration from project only always compiles with ANY CPU option HOT 1
- add-migrations does not add Migrations folder HOT 1
- Nuget does not pull the dll's HOT 1
- Error when updating code to .NET 8 HOT 3
- After upgrading to the latest version of vs, running DbMigrator reports an error HOT 1
- Add-Migration not recognized after install of Microsoft.EntityFrameworkCore.Tools HOT 1
- To match the data types of columns in the database and in the class HOT 1
- Entity Framework not able to import stored procedures HOT 1
- Entity Framework not importing stored procedures HOT 1
- Thread.CurrentThread.CurrentCulture settings are leaked into the generated SQL causing invalid SQL HOT 7
- EF 6.5 release checklist HOT 35
- EntityFramework package initialization error in Package Manager Console HOT 1
- EF6.5 + Azure + ASP.NET MVC + Microsoft.Data.SqlClient ProviderName HOT 6
- Cannot use EF6 with Microsoft.EntityFramework.SqlServer and Microsoft.Data.SqlClient HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ef6.