c# - Is it a good practice to add methods to the POCOs or to create separate class to update the values of the POCOs? -
is practice add methods pocos or create separate class update values of pocos in case need that? for example, public class foruser { [required] public int depratment { get; set; } public list<selectlistitem> departmentslist { get; set; } [required] public int role { get; set; } [required] [stringlength(200, minimumlength = 3, errormessage = "length of first name should more 3 letters")] public string firstname { get; set; } [stringlength(200, minimumlength = 3, errormessage = "length of mid name should more 3 letters")] public string midname { get; set; } [required] [stringlength(200, minimumlength = 3, errormessage = "length of last name should more 3 letters")] public string lastname { get; set; } [required] [emailaddress(errormessage = "invalid email address")] public string email { get; set; } [stringlength(14, minimumlength = 10 , errormessage = ...