Optimizing entity framework linq queries

Nested linq expression My clientModel has a list of MotionDetections that contains a date. I want to get a list from the database where the min and max of this date are used. The first code looks like this: [code lang=”csharp”] // Get the existing values from this device between the clientModel dates var motionDetections … Read more