1. 程式人生 > >EF Core註意事項

EF Core註意事項

commands ans net etc ef6 docs mman 項目路徑 data

流程:
https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db

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
項目路徑不要有中文

EF Core註意事項