开发者

Entity Framework doesn't pluralize for new empty edmx

开发者 https://www.devze.com 2023-03-25 16:54 出处:网络
I have a problem that new created edmx doesn\'t pluralize added entities set, instead it appends \"Set\" to the Entity name:

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

精彩评论

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

关注公众号