Some RDBMSs (including SQL Server) support XML columns. I'd prefer not mapping such a column to the string
data type. Does Entity Framework 6.1 support XML natively in any way?
More specifically, can I map an xml
column to one of the XML data types of .NET (such as XElement
or XmlElement
)? Does Entity Framework support XQuery that is integrated into normal LINQ queries and is translated to SQL queries?
No, only mapping it to string and then having to stream it back in to an XML document.
There is a long thread back and forth with Microsoft about doing this in EF4, 5, or 6, but it looks like they researched it and decided to punt.
You can read that here:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.