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

Commented Issue: Remove exception for server generated GUIDs from CE provider [437]

$
0
0
See code snippet below. The Dev10 bug (845968) is apparently fixed so it should be possible to now fix this code. Let's give it a shot!

// VSTS Bug ID: 845968
// Throw an exception if key member is of server generated guid type.
// This is because DML operations won't succeed if key column is of server generated with GUID type.
// TODO: Remove this once the DML is fixed to retrieve back server generated GUID column values.
if (IsServerGeneratedGuid(keyMember))
{
throw ADP1.ServerGeneratedGuidKeyNotSupportedException(keyMember.Name);
}
if (first)
{
first = false;
}
else
{
objectBuilder.Append(",");
}
Comments: The fix to the 845968 bug was to introduce the above check in the CE Provider code. The scenario itself is still not supported.

Viewing all articles
Browse latest Browse all 10318

Trending Articles