Hi,
I currently codegen my bl using an llbl template. I have a Save method for each entity that saves an entity. This method will automatically update a column with the time and date prior to the Save.
Public Shared Function SaveEntity(ByVal Entity As JrHighHistoryEntity, Optional ByVal refetchAfterSave As Boolean = True, Optional ByVal updateTimeStamp As Boolean = True) As Boolean
If (updateTimeStamp AndAlso Entity.IsDirty) OrElse Entity.IsNew Then
Entity.TimeStampDate = CInt(Date.Now.ToString("yyyyMMdd"))
Entity.TimeStampTime = CInt(Date.Now.ToString("hhmmss"))
End If
Using adapter As New CustomDataAccessAdapter
Return adapter.SaveEntity(Entity, refetchAfterSave)
End Using
End Function
I'm not sure how I would do that when i want to update a collection.
For various reasons I can't use a trigger to do this.
Any help would be appreciated.
Using adapter with latest production build.
Thanks,
Fishy.