Serialization in the ADO.NET Entity Framework
You can easily serialize objects exposed by an Entity Data Model generated by the ADO.NET Entity Framework. In Visual Studio 2015, this process is different than in previous versions because all available options to generate data models (EF Designer or Code First) now produce Plain Old CLR Objects (POCO). For this reason, in both cases, you simply use the Serializable
attribute and techniques described in the section “Providing Serialization for Custom Objects,” earlier in this chapter. This is because POCO objects are platform independent and thus are custom business objects, like the ones described previously. You can easily check this by investigating the code-behind files for EDMs. Using POCO ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.