Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

New Post: GetValueOrDefault with nullable DateTime Stored Procedure parameters

$
0
0
Yeah, I got to where you are but I also had to remove the part you've highlighted as DateTime is a ValueType however as you're using the HasValue property you'd have to check whether the type is Nullable.

I'd probably use the below as even if the type isn't Nullable it will still compile (I think, can't check at the minute):

if(beginningDate == null)
{
...
}

Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>