c# - Cannot generate sql in entity framework for oracle database -


i trying generate oracle sql entity framework model.

i can generate sqlserver sql fine, error occurs oracle generation.

i've installed oracle developer tools vs fine.
have selected "generate oracle via t4 (tpt).xaml (vs)" database generation workflow, , "ssdltooracle.tt (vs)" ddl generation template.

when attempt generate sql right click menu, following error repeated on , on again:

the ssdl generated activity called 'csdltossdlandmslactivity' not valid , has following errors:
default value (false) not compatible facets specified decimal. value must decimal number scale less or equal 38 , precision less or equal 38.
... [snip]

my model not contain decimals.
tried setting default value of int32's , double's other (none), did not fix it.

can me resolve issue?

can add xml definition project's app/web.config file (inside of "configuration" section), , try again.

<oracle.dataaccess.client>   <settings>     <add name="bool" value="edmmapping number(1,0)" />     <add name="byte" value="edmmapping number(3,0)" />     <add name="int16" value="edmmapping number(5,0)" />     <add name="int32" value="edmmapping number(10,0)" />     <add name="int64" value="edmmapping number(19,0)" />     <add name="int16" value="edmmapping number(38,0)" />     <add name="int32" value="edmmapping number(38,0)" />     <add name="int64" value="edmmapping number(38,0)" />   </settings> </oracle.dataaccess.client> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -