Browse Source
Update docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md
Co-authored-by: Qingxiao Ren <rqx110@163.com>
pull/6345/head
liangshiwei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/zh-Hans/Entity-Framework-Core-Other-DBMS.md
|
|
@ -69,7 +69,7 @@ MySQL连接字符串与SQL Server连接字符串不同. 所以检查你的解决 |
|
|
在 *YourProjectName*MigrationsDbContextFactory 类中找到以下代码: |
|
|
在 *YourProjectName*MigrationsDbContextFactory 类中找到以下代码: |
|
|
|
|
|
|
|
|
````csharp |
|
|
````csharp |
|
|
var builder = new DbContextOptionsBuilder<TestMigrationsDbContext>() |
|
|
var builder = new DbContextOptionsBuilder<YourProjectNameMigrationsDbContext>() |
|
|
.UseSqlServer(configuration.GetConnectionString("Default")); |
|
|
.UseSqlServer(configuration.GetConnectionString("Default")); |
|
|
```` |
|
|
```` |
|
|
|
|
|
|
|
|
|