Can NHibernate persist to flat files instead of database?
Asked Answered
S

2

8

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?

Secondguess answered 25/3, 2009 at 10:22 Comment(2)
Do the files have to be human readable or is the requirement just to be able to push out to a file as opposed to monolithic db? If human readable isn't necessary i'd suggest SqlLite which NHibernate does support IIRC.Hove
+1 to Quarrelsome. I was thinking the same thing.Katykatya
J
3

Try using the Jet engine (see this)

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

Jeremiad answered 25/3, 2009 at 16:25 Comment(0)
C
2

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.

Cheatham answered 25/3, 2009 at 10:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.