0
如何使用以下函数在Entity Framework 6.1.3中移除多个约定?实体框架6.1.3使用ModelBuilder移除约定
public void Remove(
params IConvention[] conventions)
这是一个链接到文档,但这个功能似乎不工作?
我曾尝试:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove(new PluralizingTableNameConvention());
}
但这不起作用。
请张贴如何使用它的例子。
感谢