I am new to asp.net core, different languages may have their own dataset migration framework. In asp.net core, how do I migrate my mysql fields to my project? In the past, the fields of the model class were written and mapped to the database. Now, how to map the database to the model class? I found this article, but please tell me how to do it, forgive my question.
The final generated file:
public partial class User
{
public int Id { get; set; }
public string Name { get; set; }
public string Pwd { get; set; }
}
You can refer to this article:
https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework-core-scaffold-example.html