I have a data base which has various columns among which are the columns “Effective Date” and “Termination Date”
The situation is before adding a record I need to make sure that there is no overlapping record for the given set of Effective and Termination dates. How could I implement this? I am building the app with MVC using LINQ.
Thanks!
You should check any of records startDate and TerminationDate are in your new record’s start and termination date or not, you can do this with linq: