net core EFcore CodeFirst 使用Mysql数据库
准备工作:NuGut 以下包=>
Microsoft.EntityFrameworkCore.Tools
Pomelo.EntityFrameworkCore.MySql
Pomelo.EntityFrameworkCore.MySql.Design
新增Person类:
namespace Models.Entity
{
public class Person
{
public long Id { get; set; }
public string
原创
2022-01-27 16:22:57 ·
1154 阅读 ·
0 评论