May 2007 Entries

Validating date ranges in a collection.

Some time ago, I wrote some code to handle colliding date ranges inside a collection. As simple as it may seem, it's not as straight forward as some may think. At that time I used some active objects features and worked very well and contemplated many different scenarios. Since then, I thought about doing the same for CSLA classes, this time in a reusable way. So, here we go:     What cases does this cover? -Two single items inside a collection can't have an overlapping date range (start/end dates). -Items may or may nor be groupped (we'll come back to this later). What does this mean? Well,...

«May»
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789