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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.