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.

No comments:

Post a Comment