NHibernate code gen with some stored procedures

Posts   
 
    
AidanCasey
User
Posts: 3
Joined: 31-Jan-2011
# Posted on: 09-Feb-2011 02:09:43   

Hi

I am using the NHibernate code gen templates and they are excellent - great job guys !

One questinon - I've added some stored procedure calls to the same llblgenpro project but when I generate the code I can't find any code to call them.

Does the NHibernate template also allow me to generate c# code to call some stored procedures ?? ( I only want to call a few stored procs to handle some edge cases - not to replace NHibernate entierely....)

thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Feb-2011 02:54:01   

Hi Aidan,

StoredProcedures are not supported for NHibernate. So you should do the mapping by yourself.

David Elizondo | LLBLGen Support Team
AidanCasey
User
Posts: 3
Joined: 31-Jan-2011
# Posted on: 09-Feb-2011 04:10:30   

thanks for the quick reply ! you guys must never sleep simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 09-Feb-2011 09:37:57   

simple_smile

We didn't add the stored proc calls to NHibernate as we couldn't find proper constructs for NHibernate which make calling procs easy, i.e.: it looks like they're not natively supported in nhibernate land.

Frans Bouma | Lead developer LLBLGen Pro