C# Class and Oracle Mapping Parameters -


i have type declared in oracle database:

create or replace type t_project_code_changes table of obj_project_code_change;  

i map type in c# so

[oraclecustomtypemapping("dev_schema.obj_project_code_change")] class projectcodechangefactory : typefactorytemplate<projectcodechangedto> {     //code } 

the above code works without error, if remove schema name 'dev_schema' attribute, fails:

[oraclecustomtypemapping("obj_project_code_change")] 

generates following error:

unhandled exception: system.invalidoperationexception: custom type mapping 'projectcodechangedto' not specified or in valid.
@ oracle.dataaccess.types.oracleudt.getudtname(string customtypename, string datasource)

at point want ship code past 'dev_schema', result in code failing.

the schema name comes connection string user id:

"data source=dbname;user id=dev_schema;password=pwd;pooling=false;"  

is there can onm oracle of c# side me this. i.e., somehow:

  1. pass schema name attribute parameter
  2. define type in oracle in way don't need use schema

as further bit of information, problem presents when use odp.net client version 11.1.0.7. 11.2 version of dll works without schema name in attribute.

any appreciated.

if don't need stick oraclecustomtypemapping attribute approach, think best solution set custom type mappings through configuration file, instead.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -