ASP.NET MVC3 - Database First Approach and Data-Annotations Problem in Buddy Class
Download - My Current Blog Project 11 MB
I have wrote an article about Database First Approach using EF4.1 but the problem is I can't save the data annotations in the generated classes. And which is pretty obvious because those class will be generated after the db or model change.
So I learned about buddy class in the C# , How to: Validate Model Data Using DataAnnotations Attributes but couldn't implement in my project , so I had posted my whole project link , please help me.
Download - My Current Blog Project 11 MB
I have wrote an article about Database First Approach using EF4.1 but the problem is I can't save the data annotations in the generated classes. And which is pretty obvious because those class will be generated after the db or model change.
So I learned about buddy class in the C# , How to: Validate Model Data Using DataAnnotations Attributes but couldn't implement in my project , so I had posted my whole project link , please help me.