Class CustomViewSettingsDB
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 View Settings.
Inheritance
Namespace: EPiServer.Commerce.CustomViewSetting.Internal.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class CustomViewSettingsDB : Object
Constructors
CustomViewSettingsDB(IConnectionStringHandler)
Initializes a new instance of the CustomViewSettingsDB class.
Declaration
public CustomViewSettingsDB(IConnectionStringHandler connectionHandler)
Parameters
Type | Name | Description |
---|---|---|
IConnectionStringHandler | connectionHandler | The connection string handler. |
Methods
AddCustomViewSettings(CustomViewSettings)
Adds a custom view settings.
Declaration
public int AddCustomViewSettings(CustomViewSettings customViewSettings)
Parameters
Type | Name | Description |
---|---|---|
CustomViewSettings | customViewSettings | The custom view settings. |
Returns
Type | Description |
---|---|
System.Int32 | The view identifier. |
DeleteCustomViewSettings(Int32)
Deletes a custom view settings.
Declaration
public void DeleteCustomViewSettings(int viewId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewId | The custom view id. |
GetCustomViewSettings(Int32, String)
Gets the custom view settings.
Declaration
public CustomViewSettings GetCustomViewSettings(int viewId, string userName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewId | The view id. |
System.String | userName | The user name. |
Returns
Type | Description |
---|---|
CustomViewSettings | A custom view settings. |
GetCustomViewSettings_RecentView(String)
Gets list of recent view for custom column settings.
Declaration
public IEnumerable<CustomViewSettings_RecentView> GetCustomViewSettings_RecentView(string userName)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The user name. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<CustomViewSettings_RecentView> | A list of recent view for custom column settings. |
ListCustomViewSettings(String, String)
Lists the custom view settings.
Declaration
public IEnumerable<CustomViewSettings> ListCustomViewSettings(string userName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The user name. |
System.String | tableName | The table name. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<CustomViewSettings> | A list of custom view settings. |
UpdateCustomViewSettings(CustomViewSettings)
Updates a custom view settings.
Declaration
public void UpdateCustomViewSettings(CustomViewSettings customViewSettings)
Parameters
Type | Name | Description |
---|---|---|
CustomViewSettings | customViewSettings | The custom view settings. |
UpdateCustomViewSettings_RecentView(Int32, String, String)
Updates list of recent view for custom column settings.
Declaration
public void UpdateCustomViewSettings_RecentView(int viewId, string tableName, string userName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | viewId | The view id. |
System.String | tableName | The table name |
System.String | userName | The user name. |