Is your feature request related to a problem? Please describe.
Metadata file from odata.cli tool is always named OData ServiceCsdl.xml.
If you generate two references, the assembly will contain two resources with the same name ending, which will throw an exception in GeneratedEdmModel.CreateXmlReader()
Describe the solution you'd like
Add optional --service-name (-sn) argument to the generate command to override the DefaultServiceName constant
Describe alternatives you've considered
I need to manually change resource name in Reference.cs and OData ServiceCsdl.xml filename
Is your feature request related to a problem? Please describe.
Metadata file from odata.cli tool is always named
OData ServiceCsdl.xml
. If you generate two references, the assembly will contain two resources with the same name ending, which will throw an exception inGeneratedEdmModel.CreateXmlReader()
Describe the solution you'd like
Add optional --service-name (-sn) argument to the
generate
command to override the DefaultServiceName constantDescribe alternatives you've considered
I need to manually change resource name in Reference.cs and OData ServiceCsdl.xml filename
Additional context