Modified:
branches/5.2/CHANGES
branches/5.2/MySql.Web/Providers/Source/ProfileProvider.cs
Log:
- Fixed problem with profile provider where properties that were specified without
a given type could not be retrieved properly (bug #36000)
Modified: branches/5.2/CHANGES
===================================================================
--- branches/5.2/CHANGES 2008-04-25 19:43:11 UTC (rev 1261)
+++ branches/5.2/CHANGES 2008-04-25 20:49:49 UTC (rev 1262)
@@ -16,6 +16,8 @@
is null would cause an exception (bug #35332)
- Fixed bug where retrieving passwords that are encrypted was not returning proper
passwords (bug #35336)
+- Fixed problem with profile provider where properties that were specified without
+ a given type could not be retrieved properly (bug #36000)
Version 5.2.1 - 2/27/2008
- Tons of fixes in providers. The actually work now. :)
Modified: branches/5.2/MySql.Web/Providers/Source/ProfileProvider.cs
===================================================================
--- branches/5.2/MySql.Web/Providers/Source/ProfileProvider.cs 2008-04-25 19:43:11 UTC (rev 1261)
+++ branches/5.2/MySql.Web/Providers/Source/ProfileProvider.cs 2008-04-25 20:49:49 UTC (rev 1262)
@@ -431,6 +431,11 @@
foreach (SettingsProperty property in collection)
{
+ if (property.PropertyType.IsPrimitive || property.PropertyType == typeof(string))
+ property.SerializeAs = SettingsSerializeAs.String;
+ else
+ property.SerializeAs = SettingsSerializeAs.Xml;
+
values.Add(new SettingsPropertyValue(property));
}
Thread |
---|
• Connector/NET commit: r1262 - in branches/5.2: . MySql.Web/Providers/Source | rburnett | 25 Apr |