Skip to main content
14 events
when toggle format what by license comment
Apr 13, 2017 at 12:40 history edited CommunityBot
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Jul 26, 2015 at 8:09 comment added BlueRaja - Danny Pflughoeft I'd name it something like OccursWithinNext and pass a TimeSpan rather than two integers (this is slightly different, since it assumes min is always 0)
Jul 23, 2015 at 10:20 vote accept barnacle.m
Jul 23, 2015 at 10:18 comment added barnacle.m @crclayton You can call functions in linq queries as long as you're not querying the database itself in your query, otherwise it thinks you're trying to translate things to SQL, so what I do is pull the list from the db, then run linq queries on that list object.
Jul 23, 2015 at 9:22 history edited Heslacher CC BY-SA 3.0
added 650 characters in body
Jul 23, 2015 at 8:32 comment added Falco UhhOhhh Horribly wrong named Function.... AreMinutesInRangeFromNow or something like this would be better - with your Method-Name I would expect no Magic happening with DateTime.Now - or pass the already substracted value, but don't hide this!
Jul 23, 2015 at 6:19 history edited 200_success CC BY-SA 3.0
Finished swapping min and max
Jul 23, 2015 at 4:58 comment added Heslacher @BlueRaja-DannyPflughoeft you are right. Updated answer.
Jul 23, 2015 at 4:58 history edited Heslacher CC BY-SA 3.0
edited body
Jul 22, 2015 at 22:09 comment added BlueRaja - Danny Pflughoeft I would expect min to come before max in the parameter list.
Jul 22, 2015 at 21:50 comment added Charles Clayton Oh, weird, I always get errors like Method 'Boolean functionName(System.String, System.String)' has no supported translation to SQL. I figured you just couldn't call functions in linq queries.
S Jul 22, 2015 at 11:48 history suggested Danko Durbić CC BY-SA 3.0
Using argument dateTime in the function body.
Jul 22, 2015 at 11:46 review Suggested edits
S Jul 22, 2015 at 11:48
Jul 22, 2015 at 10:30 history answered Heslacher CC BY-SA 3.0