Fix check of default value in ConvertIdToString if TKey is a class and not a structure.

This commit is contained in:
Frédéric Barrière 2015-12-07 00:08:03 +01:00 committed by Hao Kung
parent d79c218210
commit 042588e1b2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}