Page 1 of 1

XML Column type support?

Posted: Tue 22 Jan 2013 01:26
by lmcnearney
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?

Re: XML Column type support?

Posted: Tue 22 Jan 2013 14:35
by MariiaI
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.