实体框架核心-更改“ __EFMigrationsHistory”的模式表 [英] Entity Framework Core - change schema of "__EFMigrationsHistory" table
本文介绍了实体框架核心-更改“ __EFMigrationsHistory”的模式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在EntityFramework Core中更改 __ EFMigrationsHistory
表的架构?
Is it possible to change schema of __EFMigrationsHistory
table in EntityFramework Core?
推荐答案
在调用 UseSqlServer
时执行此操作。
optionsBuilder
.UseSqlServer(
"...",
x => x.MigrationsHistoryTable(
HistoryRepository.DefaultTableName,
"mySchema"));
这篇关于实体框架核心-更改“ __EFMigrationsHistory”的模式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文