c# - Fluent Nhibernate and sql script -


i want execute script variables in order create new database. @ first, tried command line want execute script server have errors access rights.

is possible execute sql script fluent nhibernate in application code?

i've found answer on link doesn't execute script, loads queries.
link

thanks help.

just note: fluent nhibernate third party library mapping. execute script need just nhibernate.

and in fact, answer you've found, answer. point of write scripts call executeupdate() @ end

var query = session.createsqlquery("your sql string insert, update..."); // execute query.executeupdate(); 

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -