Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Issue: STE: Expose error code for InvalidOperationException [627]

$
0
0
Handling exceptions with self-tracking entities is ugly because one must parse the (localized?) message string. Please expose an error code with InvalidOperationException.

It is not clear to me why STEs throw an InvalidOperationException at all instead of an UpdateExeption for normal errors like "The relationship could not be changed because one or more of the foreign-key properties is non-nullable..."

For details see:
http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/8ee96457-0182-4e6c-a925-d8c87b13be65

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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