views:

101

answers:

1

Hi, I want to execute script file on my database using fluent nhibernate. Can you tell me how can i achieve this? I have a file say "myScript.sql" on my c drive, which i want to execute against my oracle database.

Thanks in advance, Ashish

+2  A: 

You can't execute anything using Fluent - it's simply a convenient way of generating mappings for NHibernate. You can execute a SQL script using NHibernate as a named query if it is known up front and compiled into the mappings.

David M
Can you please elaborate? I mean "You can execute a SQL script using NHibernate as a named query" how can i do this?
Ashish
Check the link I've just added in the answer, particularly sec 13.3
David M

related questions