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

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -