ASP.NET MVC3 - Database First Approach and Data-Annotations Problem in Buddy Class

AukI

Member
Joined
May 5, 2011
Messages
6
Programming Experience
3-5
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.
 

Attachments

  • code2.png
    code2.png
    267.5 KB · Views: 128
  • Cod1.png
    Cod1.png
    230.9 KB · Views: 120

Latest posts

Back
Top Bottom