#region 通过Api生成数据库-----CodeFirst;代码写好,生成数据库;
//1.Nuge引入程序包;Microsoft.EntityFrameworkCore
// Microsoft.EntityFrameworkCore.Design
using (CustomDbContext context = new CustomDbContext())
{
///生成数据库
context.Database.EnsureDeleted