XML Column type support?

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
lmcnearney
Posts: 3
Joined: Mon 26 Mar 2012 16:15

XML Column type support?

Post by lmcnearney » Tue 22 Jan 2013 01:26

Using normal LINQ-to-SQL, it supports XML column types as XElement types. When I map an XML column in LinqConnect, it maps it as a string. Does LinqConnect support XML columns / XElement types?

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: XML Column type support?

Post by MariiaI » Tue 22 Jan 2013 14:35

LinqConnect doesn't provide support for XElement type and the XML data type is mapped to string only.
In fact, mapping XML data into XElement would cause some difficulties. For example, it is a reference type and it doesn't implement INotifyPropertyChanging, INotifyPropertyChanged interfaces. Thus, not all changes, which were made to objects with this type, can be tracked, and it can cause problems with change tracking.
In LinqConnect you can work with XML data type via strings and select XML element/nodes manually in the code. We are sending you a simple test project to the e-mail address you provided in your forum profile. Please test it and tell us if this helps.

Post Reply