03 July 2017

'EntityTypeBuilder' does not contain a definition for 'ToTable'

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.

3 comments:

  1. Severity Code Description Project File Line Suppression State
    Error 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

    ReplyDelete
  2. Severity Code Description Project File Line Suppression State
    Error 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?)

    ReplyDelete