开发者

Entity Framework doesn't pluralize for new empty edmx

I have a problem that new created edmx doesn't pluralize added entities set, instead it appends "Set" to the Entity name:

  • Entity name: Person
  • Entity set name: PersonSet

I thought that it should pluralize by default and I don't change anything in Visual.

EDIT: For edmx created from existing database there is an option to chose if it should pluralize o开发者_StackOverflow社区r not, also in designer part of edmx is that option, but I don't wanna change that and lose changes after every update:

<edmx:Options>
  <DesignerInfoPropertySet>
    <DesignerProperty Name="ValidateOnBuild" Value="true" />
    <DesignerProperty Name="EnablePluralization" Value="False" />
  </DesignerInfoPropertySet>
</edmx:Options>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜