From 042588e1b231e2bba0bf1748c1e0ced3e6c32a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barri=C3=A8re?= Date: Mon, 7 Dec 2015 00:08:03 +0100 Subject: [PATCH] Fix check of default value in ConvertIdToString if TKey is a class and not a structure. --- src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs index 2132bf5b30..75edb4ce9e 100644 --- a/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs +++ b/src/Microsoft.AspNet.Identity.EntityFramework/UserStore.cs @@ -314,7 +314,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework /// An representation of the provided . public virtual string ConvertIdToString(TKey id) { - if (id.Equals(default(TKey))) + if (Object.Equals(id, default(TKey))) { return null; }