3

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

3
  • Belongs on superuser.com Commented Jan 7, 2010 at 13:31
  • 1
    @Andread No it doesn't - the question is specifically about programmatically executing a script, using Fluent NHibernate Commented Apr 23, 2010 at 9:28
  • Duplicate of stackoverflow.com/questions/1420244/nhibernate-and-sql-scripts Commented Jun 23, 2011 at 14:00

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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

You can use this open source tool for schema management:(+)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.