ODataConnectedService icon indicating copy to clipboard operation
ODataConnectedService copied to clipboard

Passing ServiceName as command line argument

Open ellizio opened this issue 10 months ago • 2 comments

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

Additional context

ellizio avatar Mar 27 '24 12:03 ellizio

Hi @ellizio. Thank you for reporting this issue. If you're able to contribute a pull request we'd be happy to review.

gathogojr avatar Apr 02 '24 16:04 gathogojr

@gathogojr I have opened pull request https://github.com/OData/ODataConnectedService/pull/389

ellizio avatar Apr 18 '24 16:04 ellizio