How to export a database using Fluent NHibernate?
How can I export an entire database, with all its tables and data, into a importable file using Fluent NHibernate (or any other preferrable tool)?
Edit: To clarify; the expo开发者_开发百科rting should be made programmatically.
I would think this is a job for you and your particular DBMS. This isn't really an area that NHibernate is intended for as far as I know. If you need to do it programatically, then I would think scripting would be the way to go. What DBMS are you using?
Update:
In that case, look at tsql scripts such as this one, or maintenance plans.
Although I haven't tried this, it should/could work. There are numerous articles on the web about exporting a Gridview to Excel. Create and bind the Gridview to your NHibernate objects in the code-behind file. As I said there are loads of articles/examples on the web on how to export from the Gridview.
精彩评论