Files to look at: Program.cs How to define a persistent class at runtime This example demonstrates how to define a persistent class and its properties in code and how to create an use an instance of such class.See Also: How to persist metadata