olsh / datagrip-poco-generator

An extension for IntelliJ-based IDEs (DataGrip, Rider, etc.) to generate POCO (C#) classes from a database
MIT License
64 stars 25 forks source link

NUMBER(oracle) -> int(c#) #5

Closed huseyinorer closed 4 years ago

huseyinorer commented 4 years ago

I tried to add NUMBER(oracle) to typemapping dictionary but it not working. Is there any way for oracle NUMBER types ?

olsh commented 4 years ago

Hi @huseyinorer I don't have an Oracle instance to test it, but this should be pretty simple. You need to add Oracle type here https://github.com/olsh/datagrip-poco-generator/blob/39a9e56e559d063edaf46d82e70e9c2214add70b/Generate%20POCO.groovy#L10

I'll test it if I manage to set up a test oracle instance.

huseyinorer commented 4 years ago

Sorry my bad .I solved. I 've used uppercase. This is working now. (~/(?i)^number/) : "int",

olsh commented 4 years ago

Thanks, I added the mapping to the scripts.