I read some problem that same with me. I used Database First to generate model class (EDMX file) and I want to validate using "MetadataType". I have read some solution here but it didn't work to me here is the code\[code\][MetadataType(typeof(MovieEntitiesMetaData))]public partial class MovieEntities{ }public class MovieEntitiesMetaData{ [DisplayFormat(DataFormatString = "{0:c}")] public Nullable<global::System.Decimal> PRICE { get; set; }}\[/code\]Is there any missing code so that the solution did not work?