NHibernate 可以持久保存到平面文件而不是数据库吗? [英] Can NHibernate persist to flat files instead of database?

查看:23
本文介绍了NHibernate 可以持久保存到平面文件而不是数据库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个好奇的问题.我有一个应用程序必须同时支持平面文件和数据库作为保存数据的地方.我在想也许使用 .csv 或制表符分隔的文件集作为输入...

是否可以使用 NHibernate 编写来完成两个持久化任务?

解决方案

尝试使用 Jet 引擎(参见 这个)

方言和其他 nhibernate 设置应该是 Microsoft Access 的设置..>

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?

解决方案

Try using the Jet engine (see this)

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

这篇关于NHibernate 可以持久保存到平面文件而不是数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆