Class CustomColumnSettingsDB
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Represents Database access class to manipulate Custom Column Settings.
Inheritance
System.Object
CustomColumnSettingsDB
Namespace: EPiServer.Commerce.CustomColumnSetting.Internal.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class CustomColumnSettingsDB : Object
Constructors
CustomColumnSettingsDB(IConnectionStringHandler)
Initializes a new instance of the CustomColumnSettingsDB class.
Declaration
public CustomColumnSettingsDB(IConnectionStringHandler connectionHandler)
Parameters
Type | Name | Description |
---|---|---|
IConnectionStringHandler | connectionHandler | The connection string handler. |
Methods
GetCustomColumnSettings(Int32, String)
Gets the custom column settings.
Declaration
public IEnumerable<CustomColumnSettings> GetCustomColumnSettings(int viewId, string userName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewId | The view id. |
System.String | userName | The username. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<CustomColumnSettings> | A list of custom column settings. |
SaveCustomColumnSettings(Int32, String, IEnumerable<CustomColumnSettings>)
Saves a list of custom column settings.
Declaration
public void SaveCustomColumnSettings(int viewId, string userName, IEnumerable<CustomColumnSettings> customColumnSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewId | The view id. |
System.String | userName | The username. |
System.Collections.Generic.IEnumerable<CustomColumnSettings> | customColumnSettings | A list of custom column settings. |