What steps will reproduce the problem?
1. Having an entity A with a collection of other entities B
2. B primary key is a GUID
3. Try to save.
What is the expected output? What do you see instead?
Save should work. I see an exception about trying to Convert a String to a Guid
What version of the product are you using? On what operating system?
Latest.
Please provide any additional information below.
In order to fix it, change EntityCollectionValueProviderResult, line 50 from:
object typedId = Convert.ChangeType(rawId, idType);
to:
object typedId =
(idType == typeof(Guid))
? new Guid(rawId)
: Convert.ChangeType(rawId, idType);
Original issue reported on code.google.com by cur...@gmail.com on 1 Sep 2009 at 11:02
Original issue reported on code.google.com by
cur...@gmail.com
on 1 Sep 2009 at 11:02