This is an excerpt from Manning's book ASP.NET 4.0 in Practice. Login to get full access to this book.
Listing 3.7. Explicitly marking modified properties for persistence