C# 英孚。读回另一个约定中设置的表名?

C# 英孚。读回另一个约定中设置的表名?,c#,entity-framework,C#,Entity Framework,在我的上下文中有多种约定。它们相互覆盖。ta有没有办法读回之前设置的表名 如果先阅读本公约 public class FirstConvention : Convention { public FirstConvention() { this.Types() .Configure(t => { t.ToTable("First_" + t.ClrType.Name);

在我的上下文中有多种约定。它们相互覆盖。ta有没有办法读回之前设置的表名

如果先阅读本公约

public class FirstConvention : Convention
{
    public FirstConvention()
    {
        this.Types()
            .Configure(t =>
            {
                t.ToTable("First_" + t.ClrType.Name);
            });
    }
}
…然后运行此约定

public class SecondConvention : Convention
{
    public SecondConvention()
    {
        this.Types()
            .Configure(t =>
            {
                // is it possible to check here if the tablename is set earlier?
                t.ToTable(t.ClrType.Name + "_second");
            });
    }
}
…第一个约定中的表名当然会被覆盖。在第二个约定中有没有读取表名的方法