Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: DbExpression.Cast and exceptions

$
0
0
Is there any way to deal with scenarios like this:
 var cast = SomeDbExpression.Cast(InvalidCastType);

Lets say the value we want to cast is "hello" and we try to cast it to bit.
Is there any way to treat this as null or silently ignore the result?

Viewing all articles
Browse latest Browse all 1793

Trending Articles



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