c# - EF Metadata Class not working -
i seem having trouble creating metadata class generated model classes. have created below code, resharper telling me partial class partial class single part. actual membership generated class in project in same solution. problem?
[metadatatype(typeof(membershipviewmodel))] public partial class membership { } public class membershipviewmodel { [required, stringlength(3, minimumlength = 3, errormessage = "format: (045/135)")] [displayattribute(name = "report cycle")] public string reportcycle { get; set; } }
Comments
Post a Comment