C
C#

help

Microsoft.Data.SqlClient is not supported on this platform - .net6.0+ EF 6.0.0

MMeHow11/13/2022
Hi. I'm trying to setup the Entity Framework Core 5.0.0 for the SqlServer in .netCore3.1 class library project. I am facing this problem, which I can't figure out. Does anyone know any possible solution? My OS is Windows 11
AAngius11/13/2022
An issue with EF maybe? Can't you use EF Core?
MMeHow11/13/2022
I'm using EF Core ๐Ÿ˜„
UUUnknown User11/13/2022
2 Messages Not Public
Sign In & Join Server To View
AAngius11/13/2022
Huh, true, that "platform" might be referring to the framework version I assumed it means the OS or the CPU architecture
UUUnknown User11/13/2022
Message Not Public
Sign In & Join Server To View
MMeHow11/13/2022
It did not work on EF Core 3.1 either
UUUnknown User11/13/2022
Message Not Public
Sign In & Join Server To View
MMeHow11/13/2022
Fine, so: - These are the versions of EFCore I use
MMeHow11/13/2022
- This is my Context class:
MMeHow11/13/2022
- This is how I use it:
MMeHow11/13/2022
- The exception is being thrown in this namespace: Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal, so I'm assuming it's the EntityFrameworkCore.SqlServer package. It uses the Microsoft.Data.SqlClient package.
MMeHow11/13/2022
As you can see it uses the 1.0.19269.1 version of this package, which seems to support .netCore 2.1.
MMeHow11/13/2022
I updated the package to 3.1.0 and the exception still remains:
MMeHow11/13/2022
So, I've upgraded the .NET version of my project to 6.0 and the problem still remains on updated packages
MMeHow11/13/2022
MMeHow11/13/2022
I downgraded packages to the 6.0.0 and the problem still remains:
MMeHow11/13/2022
Ok, fuck it, i switched to postgresql and it works

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
โ” Changing object property not limited to scope?So here in UserManager there is a method: ```cs public virtual async Task UpdateNormalizedUserNameAsConsoleApp Freeze user input for 1sec [Answered]I need to freeze user input for 1 second after the last user input. What i use for the input in a doโ” Can anyone help me out with a calculation project?``using System; namespace UppgiftVรคxel { class Program { static void Main(string[] โ” How to pause BlockingCollection consumption?I'm currently enumerating through a `BlockingCollection` (with an underlying `ConcurrentQueue` backiโ” PercentageHow do I calculate percentage in C#?Powershell result to c [Answered]is it possible get a result from a powershell file after execution and store the result in a variablCreate JSON object with numbers as namesHey! I need to create these two objects, 24 and 46. These are icon files, and the JSON needs to haveโ” Separating struct array dataIs it worth separating fields of array data (struct array) into different data structures so that caโ” class instance creationcan any one tell me what is this method to create an instance of a class 1--> Product product = new(Turning an Event into a Task [Answered]I have a method that needs to send a message over the network, and then wait for a response before rโ” EF Core duplicating many-to-many?After saving, the references are duplicated! ```cs var entityShowcase = new Models.ShowcasOnly one compilation unit can have top-level statements. [Project]csharp(CS8802) [Answered]I want to make my code cleaner by making different files. But when i make different files i get thisโ” ASP.NET Core ignore a specific warning by IDA library that I'm using makes Kestrel produce a warning with a specific id. Is there a way to supprEntity Framework Migration CreationHi, so I know migrations created are based on DBContext. But how can I create a migration for a modeโ” Invalid input in memuHere is the updated code, how would i make it if the user enters a invalid input it will show the meโ” check if string is valid guid without guid.TryParseas in title, i would like to avoid conditions like `if (!Guid.TryParse(string, out var _))`, insteadโ” .NET CORE 6 servicesSo i want add a service "AddContentful" but idk how to fix this because i can only find configuratioโ” Console Game Project (Memory Matching)Hi all! I'm not sure if this is the right channel, but I have a question... I'm New to programming (Find all HREFs out of string and extract valueHey, I am currently developing a web scraper and therefore want to extract all available informationโ” How to store session data backend?I'm building a similar game to skribbl.io which is a drawing game where you draw with other people.