Class CustomerSqlProfileProvider

Implements operations for and represents the customer profile provider. (Inherits System.Web.Profile.SqlProfileProvider.)

Inheritance
System.Object
CustomerSqlProfileProvider
Namespace: Mediachase.Commerce.Customers.Profile.Providers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class CustomerSqlProfileProvider : SqlProfileProvider

Constructors

CustomerSqlProfileProvider()

Initializes a new instance of the CustomerSqlProfileProvider class.

Declaration
public CustomerSqlProfileProvider()

Fields

p_commandTimeout

Declaration
protected int p_commandTimeout
Field Value
Type Description
System.Int32

p_connectionString

Declaration
protected string p_connectionString
Field Value
Type Description
System.String

Properties

ApplicationName

Gets or sets the name of the application for which to store and retrieve profile information.

Declaration
public override string ApplicationName { get; set; }
Property Value
Type Description
System.String
Exceptions
Type Condition
System.Web.HttpException

An attempt was made to set the System.Web.Profile.SqlProfileProvider.ApplicationName property by a caller that does not have System.Web.AspNetHostingPermissionLevel.High ASP.NET hosting permission.

System.Configuration.Provider.ProviderException

An attempt was made to set the System.Web.Profile.SqlProfileProvider.ApplicationName property to a string that is longer than 256 characters.

Methods

GetPropertyValues(SettingsContext, SettingsPropertyCollection)

Retrieves profile property information and values from a SQL Server profile database.

Declaration
public override SettingsPropertyValueCollection GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties)
Parameters
Type Name Description
System.Configuration.SettingsContext sc

The System.Configuration.SettingsContext that contains user profile information.

System.Configuration.SettingsPropertyCollection properties

A System.Configuration.SettingsPropertyCollection containing profile information for the properties to be retrieved.

Returns
Type Description
System.Configuration.SettingsPropertyValueCollection

A System.Configuration.SettingsPropertyValueCollection containing profile property information and values.

Initialize(String, NameValueCollection)

Initializes the SQL Server profile provider with the property values specified in the ASP.NET application's configuration file. This method is not intended to be used directly from your code.

Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type Name Description
System.String name

The name of the System.Web.Profile.SqlProfileProvider instance to initialize.

System.Collections.Specialized.NameValueCollection config

A System.Collections.Specialized.NameValueCollection that contains the names and values of configuration options for the profile provider.

Exceptions
Type Condition
System.Exception

The applicationName attribute value exceeds 256 characters.

System.ArgumentNullException

config is null.

System.Web.HttpException

The connectionStringName attribute is an empty string ("") or is not specified in the application configuration file for this System.Web.Profile.SqlProfileProvider instance.- or - The value of the connection string specified in the connectionStringName attribute value is empty or the specified connectionStringName value does not exist in the application configuration file for this System.Web.Profile.SqlProfileProvider instance.- or - The application configuration file for this System.Web.Profile.SqlProfileProvider instance contains an unrecognized attribute.

SetPropertyValues(SettingsContext, SettingsPropertyValueCollection)

Updates the SQL Server profile database with the specified property values.

Declaration
public override void SetPropertyValues(SettingsContext sc, SettingsPropertyValueCollection properties)
Parameters
Type Name Description
System.Configuration.SettingsContext sc

The System.Configuration.SettingsContext that contains user profile information.

System.Configuration.SettingsPropertyValueCollection properties

A System.Configuration.SettingsPropertyValueCollection containing profile information and values for the properties to be updated.