exgourroset
New Member
I used Database-First to generate a model class (EDMX file), and I want to validate using "MetadataType". I read solutions here but they didn't work for me. Here is my 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 anything missing here, or why did my solution did not work?