EntityTypeBuilder does not contain a definition for ToTable in EF Core

前端 未结 12 1454
南笙
南笙 2021-02-06 20:22

I have this sample code:

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Models;

namespace MySampleNamespace
{         


        
12条回答
  •  孤街浪徒
    2021-02-06 20:38

    Ensure that the correct project is selected in the "Default Project" dropdown, and then type the command below :

    install-package microsoft.entityframeworkcore.sqlserver
    

提交回复
热议问题