Hi all,

although output parameters from stored procedures probably is not a 
priority to NH I also work in an organization where we have a lot of stored 
procedures and from time to time we need to call some of them from our .net 
code.

To be honest all developers that tried this and found that there is a way 
to map stored procedures to NH they lost a few hours trying to see how and 
output parameters can be read. IMHO this would be a nice to have feature 
for a so complete framework like NH.

Best Regards

On Monday, April 22, 2013 9:08:42 PM UTC+2, [email protected] wrote:
>
> I know nhibernate doesn't support output parameters? but I don't 
> understand why.
> Why I can't write something like this:
>
> <class name="Document">
>    ...
>   <sql-insert>exec createDocument ?,? OUT,?,?</sql-insert>
>   ...
> </class>
>
> I think it's very easy to implement.
>
> Now, for data access code I'm using pure ADO.NET. And my "documents" 
> table has "CreateDate" column, which is set by server, and returns to my 
> application by output parameter of stored procedure.
> I know I can set "CreateDate" property of my POCO class manually but i 
> don't want do it because I can't accurately synchronize client clock to the 
> clock of server.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to