Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom/plural property name for implicit collections #311

Open
las-nsc opened this issue Mar 1, 2022 · 1 comment
Open

Custom/plural property name for implicit collections #311

las-nsc opened this issue Mar 1, 2022 · 1 comment

Comments

@las-nsc
Copy link
Contributor

las-nsc commented Mar 1, 2022

When you have a sequence without a surrounding element, the name of the XSD class is used, for example

<House>
  <Person Name="Mum"/>
  <Person Name="Dad"/>
  <Person Name="Son"/>
  <Person Name="Daughter"/>
  <Object Name="Bed"/>
  <Object Name="Sofa"/>
  <Object Name="Table"/>
  <Object Name="Bath"/>
</House>

Would generate 2 C# collections, but they will be called Person and Object rather than People and Objects

If we could specify a custom xsd attribute to override the name of this sequence collection, or embed it in a comment, that would be much better.

@mganss
Copy link
Owner

mganss commented Mar 1, 2022

This is similar to #159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants