开发者

Best way of working with the XML datatype in SQL Server with .Net?

开发者 https://www.devze.com 2023-03-08 11:39 出处:网络
I\'m new to using the Xml datatype in SQL Server 20开发者_Go百科08 and I\'m wondering what is the best way of interfacing it with .Net. We are currently using SubSonic ActiveRecord as our ORM, so an X

I'm new to using the Xml datatype in SQL Server 20开发者_Go百科08 and I'm wondering what is the best way of interfacing it with .Net. We are currently using SubSonic ActiveRecord as our ORM, so an XML column will just come back as text.

Are there any libraries out there to assist in querying and making use of the Xml datatype from C#?


Use Xml field in SqlServer with nhibernate NHibernate and XML Column Types

For transparent XML serialization:

<class name="Foo">
  <!-- ... -->
  <property name="Bar" type="DataAccess.NHibernate.Types.XmlSerializedType`1[[DomainModel.Bar, DomainModel]], DataAccess" />
</class>
0

精彩评论

暂无评论...
验证码 换一张
取 消