简体   繁体   中英

How to connect a C# console application with a database stored in a .sql file

I have a console application project with perform some tasks as creating some structures from a database stored in a .sql file. I already import its data with a MySQL client. I use NHibernate. My question is: What are the actions that i have to perform to work with data stored in the database from the console application?

It sounds like you have NHibernate setup and you need to know how to get data out of it, into your application.

This tutorial has everything you need:

http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM