我有一个POCO物体(EF代码第一号)
public class ExampleTestOfDataTypes
{
public string StringProp { get; set; }
}
而不是我拥有它的配置类 :
public class ExampleTestOfDataTypesConfig : EntityTypeConfiguration<ExampleTestOfDataTypes>
{
public ExampleTestOfDataTypesConfig()
{
ToTable("CustomTableName");
this.Property(m => m.StringProp).HasColumnName("CustomString");
}
}
当我在配置文件中更改表格名称时, 我如何获得新的表格名称和新的字符串Prop 名称( 考虑到 i 有 ExpecialTestOfDataTypeConfig 和 expecialTestOfDataTypePifig 和 expecialTegoOfDataTypepepe) 。
谢谢 谢谢