question

FaizanIsmaeel-2406 avatar image
1 Vote"
FaizanIsmaeel-2406 asked Kepuzon-5601 published

Getting error while scaffolding

'Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerSqlTranslatingExpressionVisitorFactory' from assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=3.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.

dotnet-aspnet-core-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered

The message means that the version being used doesn't implement 'Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerSqlTranslatingExpressionVisitorFactory' method in 3.1.3.0

Maybe it's in 3.1.8

https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer/3.1.8

You can also use Bing or Google to see what others have done to correct the problem.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

miwan2-msft avatar image
2 Votes"
miwan2-msft answered Kepuzon-5601 published

Hi, @FaizanIsmaeel-2406,

Check the version of these packages below:

  • Microsoft.EntityFrameworkCore

  • Microsoft.AspNetCore.Identity.EntityFrameworkCore

  • Microsoft.EntityFrameworkCore.Design

  • Microsoft.EntityFrameworkCore.SqlServer

  • Microsoft.EntityFrameworkCore.Tools

Uninstall-Package Microsoft.EntityFrameworkCore.Tools and Reinstall the package.

PM> Install-Package Microsoft.EntityFrameworkCore.SqlServer
PM> Install-Package Microsoft.EntityFrameworkCore.Tools

PM> Add-Migration InitialMigration


Include all the following packages above to be of same version.



If the answer doesn’t solve your issue, please provide more details of error that will help us track down what’s happening.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Best Regards,
Michael Wang



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. It works for me.

0 Votes 0 ·
YrvindeMeloBolsoni-6255 avatar image
0 Votes"
YrvindeMeloBolsoni-6255 answered

i lost a time with this problem,

but a find solution

//Update your .NET SDK to 5.0

//Change your target framework to in your project .csproj

<PropertyGroup>
<TargetFramework>netcoreapp5.0</TargetFramework>
</PropertyGroup>

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.