Is Entity Framework able to work with a model object which contains some properties that should be serialized/deserialized into xml during CRUD operations.
Example:
public class Question
{
public string Text { get; set; }
public List<Answers> Answers { get; set; }
}
public class Answers
{
public string Text { get; set; }
}
As a result of insert we should get the following row in the database:
Text | Answers
_____________________________________________________________________________________
myQuestionText | <answers><answer Text="answer1"/><answer Text="answer2"/></answers>