Totable method is not recognized

Asked

Viewed 67 times

0

Contextualization

I am starting in ASP.Net CORE and, to consolidate the knowledge, I am trying to make a small project already using this framework. However, I am having trouble mapping my domain classes.

Problem

I added a Class Library (.NET Standard) to my Solution to implement my data access layer (Dataaccess).

When creating the mapping class for one of my domain classes, Apostapartida, I realized that the Totable method was not listed in the list of methods and properties of Entitytypebuilder. In addition to the Totable method, the Hascolumnname method is also not being recognized.

inserir a descrição da imagem aqui

I found it strange, because I had already added the package of Aspnetcore 1.1.2, as shown in the image below.

inserir a descrição da imagem aqui

I have already used Entityframework in a project in Windowsform. All I had to do was add the Entityframework package and all the properties and methods were already available. I say this not only for the Totable method, the Hascolumnname method was also enabled, which is not happening now.

I wonder if I need to add some other package, or if I forgot something basic.

Thank you!

1 answer

2


Install this package:

Microsoft.EntityFrameworkCore.Relational

These methods belong to him.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.