Hi, Using V2.0, Adapter, VB
I have a grid (UI layer) thats populated with its collection via a Manager Class (BL), and validation is within a ValidatorClass (DAL). After a row is added I can confirm within the validator that the row is new by:
Dim toValidate As ISORegionEntity = CType(involvedEntity, ISORegionEntity)
If toValidate.IsNew = True Then
...
But what is the fastest and easiest way of checking within the ValidatorClass, if the new PK entered in the grid is a duplicate? Note that items in the grid may not yet have been persisted.
Thanks