XSD Gen Classes That Reference a Common Type

前端 未结 2 2005
鱼传尺愫
鱼传尺愫 2021-02-06 01:08

I am using XSD\'s to define my DTO types in C#. I am using XSD.exe to gen the classes from the XSD\'s.

I have a Common.xsd that defines an Address type and I want to use

2条回答
  •  逝去的感伤
    2021-02-06 01:45

    You can use XSD.exe with multiple file arguments:

    xsd .\XSD\Common.xsd .\XSD\Employee.xsd .\XSD\Company.xsd /c /o:. /n:"DomainModel"
    

提交回复
热议问题