Getting started with Visual Studio 2012 RC and Entity Framework 5 ... is absolutely fond of it, but I wonder if there is a cleaner way to do this.
I would like to cut out the middle person parsing the XML each time and set it via .ToString ()
public class MyEFEntity
{
[NotMapped()]
public XElement Tags {
get { return XElement.Parse(tags); }
set { tags = value.ToString(); } }
[Column("Tags", TypeName = "xml"), Required]
public string tags { get; set; }
}
source
share