NHibernate将xml数据映射到数据库

时间:2022-02-03 21:40:17

I have xml files containing data that I wish to insert into my database using Nhibernate. I can write some Linq that will process my data and map it to my nhibernate objects but I was wondering if there was some way of doing this without the need to write the translator from XML to Nhibernate myself.

我有xml文件包含我希望使用Nhibernate插入我的数据库的数据。我可以写一些Linq,它将处理我的数据并将其映射到我的nhibernate对象,但我想知道是否有某种方法可以做到这一点,而无需自己编写从XML到Nhibernate的翻译器。

Am not sure if something exists along these lines or if anyone has written something in the past to get XML data into the database using NHibernate.

我不确定这些内容是否存在某些内容,或者是否有人在过去编写过使用NHibernate将XML数据导入数据库的内容。

Thanks for any suggestions!

谢谢你的任何建议!

1 个解决方案

#1


I believe this is what your looking for: http://markmail.org/message/3jkwktw6226357qs

我相信这就是你所寻找的:http://markmail.org/message/3jkwktw6226357qs

#1


I believe this is what your looking for: http://markmail.org/message/3jkwktw6226357qs

我相信这就是你所寻找的:http://markmail.org/message/3jkwktw6226357qs