Fix check of default value in ConvertIdToString if TKey is a class and not a structure.
This commit is contained in:
parent
d79c218210
commit
042588e1b2
|
|
@ -314,7 +314,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
|
|||
/// <returns>An <see cref="string"/> representation of the provided <paramref name="id"/>.</returns>
|
||||
public virtual string ConvertIdToString(TKey id)
|
||||
{
|
||||
if (id.Equals(default(TKey)))
|
||||
if (Object.Equals(id, default(TKey)))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue