Scaffold-dbcontext "Server=47.111.105.111,1400;Database=www.xx.com;User ID=test;Password=123456;" Microsoft.EntityFrameworkCore.SqlServer -outputdir Models -Tables t_favorite -Force
如果修改了表结构,需要同步到ef。
Scaffold-dbcontext "Server=47.111.105.111,1400;Database=www.xx.com;User ID=test;Password=123456;" Microsoft.EntityFrameworkCore.SqlServer -outputdir Models -Tables t_favorite -Force
如果修改了表结构,需要同步到ef。