Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'

20.02.2023 (👁3463)

'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'

 

Bei verwenden von Entity Framework in einer Windows Application

Code

Description

CS1061

'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer' and no accessible extension method 'UseSqlServer' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?)

 

 

Lösung:

Man muss unter nuget packages das packet:
Microsoft.EntityFrameworkCore.SqlServer mit der gleichen Version hinzufügen Framework7 auf sqlserver7

Hinweis:

Wenn zuvor noch Data.sqlserver installiert war, dann dieses bitte entfernen