LINQ to SQL mapping an SQL uniqueidentifier to a Guid
Summary The issue at hand is a System.InvalidCastException when trying to map an SQL uniqueidentifier to a Guid using LINQ to SQL. This occurs because the default mapping of uniqueidentifier in SQL to a .NET type is not a Guid, but rather a string representation of the GUID. Root Cause The root cause of this … Read more