jesskuzlo 0 Newbie Poster

Im using eneity framework and I would like to create a partail class which i have done.

Namespace CulminITIMSModel

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

Get

Return _role

End Get

Set(ByVal value As String)

_role = value

End Set

End Property


End Class

End Namespace


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!