Can I Embed an object in an EF entity (serialize on save, deserialize on access)?
问题 I have a class that I want to keep meta data for -- there a several interaction scenarios so meta allows me to keep different meta for different interaction types. class Feed() { Guid FeedId { get; set; } ObjectMetaDictionary Meta { get; set; } } I would like EF to serialize this ObjectMetaDictionary and store it as a string/VarChar in the database. When I retrieve a record I want it to be deserialized as an ObjectMetaDictionary. Does EF support this? How can I do it? I am using Entity