So like a good boy you’ve generated your POCO entities from you EF model and everytime you change the model you simple “run custom tool” to update. Cool! Then you decide to add some attributes to your POCO (don’t lets get into the argument of POCO’s in your viewmodel and this should be the only place they have extra goo) and you think “hang on everytime I update ill loose my changes”. You should already be thinking .net 3.5 (ish..) partial classes. Specifically you use a MetadataType attribute on your partial hand crafted class to specify the decoration as shown. The metadata can be in a seperate file or nested, up to you.
[MetadataType(typeof(ProductMetaData))] public partial class Product { //here u can decorate to your hearts content [AllowHtml] public class ProductMetaData { public virtual string Name { get; set; } } }