moh-hassan/odata2poco

Case option not applied to type names

Closed this issue · 6 comments

Is there a possibility to apply -c option to poco class names, enum type names? For properties works as expected.

Thanks for your work!!

Welcome to Odata2Poco project.
Case option for type names will be available in the next release (like properties).

A new package v3.3.0 is released that fix your issue.

The new features:

You can download:

Try the filter option using --include

o2pgen -r http://services.odata.org/V4/TripPinServiceRW -v --entity-case camel

How to use: read wiki

Let me know if that version fixes your issue.

Hi @moh-hassan ,

I have tried the new option --entity-case pas and works as a charm for entity names, but for navigation properties that references this entities the name of the type is not pascal-case causing compiling errors.

For example:

public class Address{
       public string Name {get;set;}
}
public class Contact{
      public address Address {get;set;}
}

Thanks!!

Thanks @miqueljuan for feedback.
I'll start fixing the issue.

The issue is fixed in v3.3.1.
Both Navigation properties and BaseClass(Parent) are fixed.

Thanks @moh-hassan , works perfectly!!