Comments (11)
Getting the same issue with .Include queries.
from pomelo.entityframeworkcore.mysql.
I've noticed that it is only affecting me on Has Many includes, when including a relation that is a list of objects. Has One includes seem to work fine.
from pomelo.entityframeworkcore.mysql.
It seems that there is no way to enable MultipleActiveResultSets in MySQL, We should refactory the ADO Layer.
from pomelo.entityframeworkcore.mysql.
Hi @caleblloyd, @matthewjcooper, just try this:
If you have already installed the pomelo packages: Pomelo.Data.MySql
and Pomelo.EntityFrameworkCore.MySql
, please remove them and restore again(dotnet restore --no-cache
). The packages are located in C:\Users\YOURNAME\.nuget\packages
.
I suppose it is works now by a quick fix.
If the error still occurs, please reopen this issue.
from pomelo.entityframeworkcore.mysql.
@applenele Can you add this into unit tests?
from pomelo.entityframeworkcore.mysql.
I've been struggling with this issue. Thinking of moving back to SQL Server :(
from pomelo.entityframeworkcore.mysql.
@tuanbs Are you using the latest MyGet version? It appears that the MultipleActiveResultSets workaround is no longer needed.
from pomelo.entityframeworkcore.mysql.
@mguinness Yes, I still have this issue after trying get the latest MyGet version. Hope it could be fixed soon. Thanks.
from pomelo.entityframeworkcore.mysql.
@tuanbs Could you please open a new issue and provide us the full repro?
from pomelo.entityframeworkcore.mysql.
@yukozh I'll open it soon and reproduce the issue. Actually, I've just tried to run my project with SQL Server and got issue of
System.InvalidCastException: Unable to cast object of type 'System.Data.ProviderBase.DbConnectionClosedConnecting'
to type 'System.Data.SqlClient.SqlInternalConnectionTds'.
So I guess my code's structure is to blame. I'm going to rewrite it and try with both SQL Server and MySql to see if it can be fixed. Thanks.
from pomelo.entityframeworkcore.mysql.
@yukozh It might also be worth creating an issue in the EF Core repo for that System.InvalidCastException
in SQL Server. There was a similar error reported in Stack Overflow, are you getting the error because the DI context object has been closed and disposed?
from pomelo.entityframeworkcore.mysql.
Related Issues (20)
- in 8.0.1 Is Timestamp byte[] no longer supported? HOT 11
- Implement support for Oracle MySQL's `CAST(... AT TIME ZONE ...)`
- Change return type of all `EF.Functions.DateDiff` extension methods related to units of `SECOND` or smaller from `int` to `long` HOT 4
- Just a quick question: does it support JSON data type? HOT 1
- Re-Opening connection hangs after successful query within scope of Http Request HOT 4
- Database generated value for DateTime givs an error after updating to version 8.0.1 HOT 5
- `Math.Log` number and base are in the wrong order in mysql `LOG` function HOT 1
- SEVERE ASP Api Response Time Problems with 8.0.1 and beyond HOT 10
- why string contains can be translated to like '' HOT 2
- Replace JSON_EXTRACT utilisation with JSON_VALUE HOT 5
- All primary keys altered in migration after upgrading efcore to 8.0.1 HOT 3
- Getting different SQL output for the same LINQ Query since upgrading to .NET 8 HOT 2
- ArgumentException: Option 'name' not supported. HOT 11
- Input string was not in a correct format when compare with TimeSpan HOT 1
- After upgrading from 7.0.0 to 8.0.2, SQL translation results are changed and this version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'. HOT 2
- MySQL operations break after InvalidOperationException: Can't Replace Active Reader HOT 2
- Remove explicit reference to `System.Text.Json` package from `Pomelo.EntityFrameworkCore.MySql.Json.Microsoft` package HOT 4
- After upgrading to 8.0.2 .SetAfterSaveBehavior(PropertySaveBehavior.Ignore) generates SQL that updates the column value HOT 7
- Invalid SQL Syntax when adding an entity with a default expression HOT 3
- TimeSpan.TotalHours could not be translated HOT 7
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 pomelo.entityframeworkcore.mysql.