Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Linq comparison. Unable to convert MySQL date/time value to System.DateTime
  2. (from s in _db. ....
  3. < joins >
  4.  where ( ... )
  5.     && (
  6.     (s.StartDate<= DateA && s.EndDate>DateB)
  7.    || (s.StartDate > DateA && s.EndDate <= DateB)
  8.    || (s.StartDate <= DateB&& s.EndDate > DateB)
  9.   )
  10.   orderby s.StartDate
  11.   select < ....>
  12.   );