14 lines
467 B
Plaintext
14 lines
467 B
Plaintext
|
||
#参考学习文档
|
||
https://www.cnblogs.com/cqpanda/p/16815263.html
|
||
|
||
# 如果不想指定项目名称,需要进入项目目录 一般pwershell进入的是项目根目录,需要命令指定项目
|
||
cd .\IRaCIS.Core.Test
|
||
|
||
# 该目录下如果有多个上下文,需要手动指定
|
||
|
||
# dotnet ef migrations add 签名名字 -p 项目名 -c 上下文名 -o 迁移文件生成目录
|
||
|
||
dotnet ef migrations add Initial -p IRaCIS.Core.Test -c IRCContext -o CodeFirstTest/MSSQL/Migrations
|
||
|
||
dotnet ef database update -p IRaCIS.Core.Test -c IRCContext |