首页 > 其他分享 >.net 6 api引入EF (DB first)

.net 6 api引入EF (DB first)

时间:2022-11-03 18:05:43浏览次数:116  
标签:中间件 EF DB html Pomelo EntityFrameworkCore api MySql com


项目添加:
Microsoft.EntityFrameworkCore.Tools
Pomelo.EntityFrameworkCore.MySql (这个是第三方的ef mysql 中间件)



Scaffold-DbContext -Force  "Server=localhost;User Id=***;Password=****;Database=****" -Provider "Pomelo.EntityFrameworkCore.MySql" -ContextDir Db -OutputDir Models



参考地址:​​http://www.caotama.com/1404488.html​​​​https://chowdera.com/2022/01/202201050452528768.html​​​​


标签:中间件,EF,DB,html,Pomelo,EntityFrameworkCore,api,MySql,com
From: https://blog.51cto.com/u_11071029/5820628

相关文章