Adding DataAnnontations to Generated Partial Classes

后端 未结 3 1359
耶瑟儿~
耶瑟儿~ 2020-12-09 00:02

I have a Subsonic3 Active Record generated partial User class which I\'ve extended on with some methods in a separate partial class.

I would like to know if it is po

3条回答
  •  一向
    一向 (楼主)
    2020-12-09 00:58

    You should create a buddy class as explained here by Scott Guthrie http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx

提交回复
热议问题