EF Core注意事項


流程:
https://docs.microsoft.com/zh-cn/aspnet/core/data/ef-rp/intro?WT.mc_id=DT-MVP-5003010&view=aspnetcore-3.0&tabs=visual-studio

1.Both Entity Framework 6.x and Entity Framework Core commands are installed. The Entity Framework 6 version is executing. You can fully qualify the command to select which one to execute, 'EntityFramework\Update-Database' for EF6.x and 'EntityFrameworkCore\Update-Database' for EF Core.
使用:
EntityFrameworkCore\Add-Migration InitialDb
EntityFrameworkCore\Update-Database

2.報錯:無法識別的轉義序列 blabla
項目路徑不要有中文


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM