Relative Content

Tag Archive for c#.netsql-serverentity-frameworkupdateexception

.NET / Entity Framework – System.Data.UpdateException not precise enough?

i got thrown into a small .NET migration project that is using the Entity Framework and MS SQL Server 2005. when persisting data that is not working with db schema (e.g. a string is too long), I am getting an exception System.Data.UpdateException that says “String or binary data would be truncated”. But there is no information to which field it relates. does someone has a clue how to get this?