While utilizing the EF 7 with dotNet core apps, I got an error that says:
'EntityTypeBuilder<T>' does not contain a definition for 'ToTable' and no extension method 'ToTable' accepting a first argument of type 'EntityTypeBuilder<T>' could be found ....
Installing the Nuget package Microsoft.EntityframeworkCore.SqlServer solved the issue.
Thank you, It's working :-)
ReplyDeleteSeverity Code Description Project File Line Suppression State
ReplyDeleteError CS1061 'EntityTypeBuilder' does not contain a definition for 'Navigation' and no accessible extension method 'Navigation' accepting a first argument of type 'EntityTypeBuilder' could be found (are you missing a using directive or an assembly reference?) QuizApp_CoreWebAPI C:\Users\ieadp\source\repos\QuizApp_CoreWebAPI\QuizApp_CoreWebAPI\Migrations\20210504104113_second.Designer.cs 372 N/A
can anyone give me a solution for this error
Severity Code Description Project File Line Suppression State
ReplyDeleteError CS1061 'EntityTypeBuilder' does not contain a definition for 'Navigation' and no accessible extension method 'Navigation' accepting a first argument of type 'EntityTypeBuilder' could be found (are you missing a using directive or an assembly reference?)