svn path=/trunk/mcs/; revision=68184
authorIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Mon, 20 Nov 2006 11:41:20 +0000 (11:41 -0000)
committerIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Mon, 20 Nov 2006 11:41:20 +0000 (11:41 -0000)
mcs/class/System.Web/System.Web.Security/ChangeLog
mcs/class/System.Web/System.Web.Security/SqlMembershipProvider.cs

index e56208d0fe025f86196017fe97be7c4f804c950d..6a63ada83b55402b9a1d793884e32c62f96e60e8 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-20 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * SqlMembershipProvider.cs: fixed: UpdateUser works properly.
+
 2006-11-15 Igor Zelmanovich <igorz@mainsoft.com>
 
        * SqlMembershipProvider.cs: fixed: name is used for ReturnValue parameter.
index 1f19d05ec9bee0029ac7ebe8748486014655ce4a..b2ebe5a389579997aad3bdf1a04b2644e160e4a2 100644 (file)
@@ -851,10 +851,8 @@ namespace System.Web.Security {
 
                                AddParameter (command, "ApplicationName", ApplicationName);
                                AddParameter (command, "UserName", user.UserName);
-                               if (user.Email != null)
-                                       AddParameter (command, "Email", user.Email);
-                               if (user.Comment != null)
-                                       AddParameter (command, "Comment", user.Comment);
+                               AddParameter (command, "Email", user.Email == null ? (object) DBNull.Value : (object) user.Email);
+                               AddParameter (command, "Comment", user.Comment == null ? (object) DBNull.Value : (object) user.Comment);
                                AddParameter (command, "IsApproved", user.IsApproved);
                                AddParameter (command, "LastLoginDate", DateTime.UtcNow);
                                AddParameter (command, "LastActivityDate", DateTime.UtcNow);