tag:blogger.com,1999:blog-6082652835152798567.post4683028328075997716..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: Part 80 - StringLength attribute in asp.net mvcUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6082652835152798567.post-29355218239064054982020-07-13T07:20:36.964-07:002020-07-13T07:20:36.964-07:00hi sir i put like this
[MetadataType(typeof(Empl...hi sir i put like this<br /> [MetadataType(typeof(EmployeeData))]<br /> public partial class EmployeeMetaData<br /> {<br /> }<br /> public class EmployeeData<br /> {<br /> [StringLength(8,MinimumLength =4)]<br /> [Required]<br /> public string Name { get; set; }<br /><br /><br /> }<br />but not workingAnonymoushttps://www.blogger.com/profile/09464777667462907439noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-49476982052190404222017-11-23T05:54:03.450-08:002017-11-23T05:54:03.450-08:00Partial classes can only exist within one project....Partial classes can only exist within one project.<br /><br />http://msdn.microsoft.com/en-us/library/wa80x488(v=vs.100).aspx<br /><br />More specifically,<br /><br />All partial-type definitions meant to be parts of the same type must be defined in the same assembly and the same module (.exe or .dll file). Partial definitions cannot span multiple modules.Anonymoushttps://www.blogger.com/profile/02935674743135717558noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-82180874422561113942015-09-05T06:42:06.673-07:002015-09-05T06:42:06.673-07:00HI Sir,
Happy Teacher's DayHI Sir,<br /><br />Happy Teacher's DayAnonymoushttps://www.blogger.com/profile/08556193930450384186noreply@blogger.com