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

Case option not applied to type names #28

Closed
miqueljuan opened this issue Oct 17, 2019 · 6 comments
Closed

Case option not applied to type names #28

miqueljuan opened this issue Oct 17, 2019 · 6 comments
Labels

Comments

@miqueljuan
Copy link

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

Thanks for your work!!

@moh-hassan
Copy link
Owner

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

@moh-hassan
Copy link
Owner

moh-hassan commented Nov 19, 2019

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.

@miqueljuan
Copy link
Author

miqueljuan commented Nov 21, 2019

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!!

@moh-hassan
Copy link
Owner

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

@moh-hassan
Copy link
Owner

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

@miqueljuan
Copy link
Author

Thanks @moh-hassan , works perfectly!!

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

No branches or pull requests

2 participants