【发布时间】:2018-01-25 07:18:47
【问题描述】:
是否可以拥有跨多个 DbContext 共享的 InMemory 数据库 (ASP.NET Core)?似乎每个 DbContext 类型都有自己的数据库,即使在 UseInMemoryDatabase 中指定了相同的数据库名称。
【问题讨论】:
-
同名就够了。
标签: c# entity-framework testing asp.net-core entity-framework-core