oracle procedure (ref decimal - ref decimal?)

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Daniel.Kania
Posts: 10
Joined: Wed 10 Mar 2010 13:20

oracle procedure (ref decimal - ref decimal?)

Post by Daniel.Kania » Mon 11 Oct 2010 12:50

Hello,
in my model are defined a oracle procedure:








and in :








When i now write:

using (Gem14Model.Gem14Entities mentity = new Gem14Model.Gem14Entities()) {
decimal test = 0;
mentity.Getnewbag(0, 0, 616, ref test);
}

an error occured: Fehler 102 4-Argument: kann nicht von "ref decimal" in "ref decimal?" konvertiert werden.

what's wrong?

And what is "decimal?" ???

thx, Daniel

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 11 Oct 2010 13:34

"decimal?" is a short version of the "System.Nullable".
You can modify your code in the following way, for example:

Code: Select all

using (Gem14Model.Gem14Entities mentity = new Gem14Model.Gem14Entities()) { 
  decimal? test = 0; 
  mentity.Getnewbag(0, 0, 616, ref test); 
}
To obtain the decimal value, simply use the "test.Value" construct.

Daniel.Kania
Posts: 10
Joined: Wed 10 Mar 2010 13:20

...

Post by Daniel.Kania » Tue 12 Oct 2010 07:26

so simple? fine!

thank you!

Post Reply