Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can NHibernate persist to flat files instead of database?

Here is a curiousity question. I have an application that must support both flat files and the database as a place to persist data. I was thinking maybe using a .csv or tab-delimited set of files as input ...

Is it possible to use NHibernate to write to do both persistance tasks?

like image 712
Jeffrey Cameron Avatar asked Mar 25 '09 10:03

Jeffrey Cameron


2 Answers

Try using the Jet engine (see this)

Dialect and other nhibernate settings should be the ones for Microsoft Access.

like image 128
Mauricio Scheffer Avatar answered Sep 20 '22 08:09

Mauricio Scheffer


No not to the best of my knowledge. I have the same requirement and have ended up just using flat XML files and hand rolling all the CRUD.

Just today I did happen to notice this File System Database on codeplex but haven't looked into it properly yet.

like image 23
sipsorcery Avatar answered Sep 21 '22 08:09

sipsorcery