I'm using self-servicing two class mode and I want to default certain properties when the entity is instantiated using the New() constructor. Do I go into [EntityName]Entity.vb and then under the New() constructor which currently looks like this:
Public Sub New
MyBase.New(New PropertyDescriptorFactory(), New EmployeeEntityFactory())
End Sub
Do I change it to this?
Public Sub New
MyBase.New(New PropertyDescriptorFactory(), New EmployeeEntityFactory())
Me.EmployeeType = EnumEmployeeType.Guest
Me.Status = EnumEmployeeStatus.Employed
End Sub
Also how do I use the validator class?
Thanks.
-Kasi