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

demongolem
  • 9,474
  • 36
  • 90
  • 105
Ashish
  • 437
  • 1
  • 4
  • 10

2 Answers2

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.

David M
  • 71,481
  • 13
  • 158
  • 186
0

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

VahidN
  • 18,457
  • 8
  • 73
  • 117