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(",");
}
// 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(",");
}