entity framework extension class and creating a custom class
Posted on 2011-05-12
Im using eneity framework and I would like to create a partail class which i have done.
Partial Public Class Role
Private _roleID As Integer = 0
Private _role As String = ""
<StringLengthValidator(1, 50, Ruleset:="RuleSetA", _
MessageTemplate:="First Name must be between 1 and 50 characters")> _
Public Property Role1() As String
Set(ByVal value As String)
_role = value
I want to enter a new record with possibly more than 50 characters for the name, when i run the program the system gives me an autogenerated error message and i want to know why it wont display my custom message.
Please help urgently!