Otis wrote:
Use 2 class scenario, override InsertEntity and UpdateEntity. In there, first perform your logic, then call base.InsertEntity/UpdateEntity. You can also use IEntityValidator objects to validate objects, which is called before a save takes place.
I tried doing this by overriding INsertEntity and UpdateEntity and now I get a concurrency exception whenever I try to insert or save a record. Any ideas?
Here is what I did for update.
Protected Overloads Overrides Function UpdateEntity() As Boolean
Me.ModifyUserId = someuserid
Me.ModifyDateTime = DateTime.Now
MyBase.UpdateEntity()
End Function
insert is basically the same
Thanks!