November Happy Hour will be moved to Thursday December 5th.

Interface IDataSourceMethods

Every datasource control that uses the GenericDataSourceView class must implement this interface.

Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IDataSourceMethods

Methods

Delete(IDictionary)

Deletes items according to the passed values.

Declaration
int Delete(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values

arguments

Returns
Type Description
System.Int32

number of deleted items

Remarks

It is possible for DataSource class to expose DeleteParameters collection as well

Insert(IDictionary)

Inserts new item(s) according to specified values.

Declaration
int Insert(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values

arguments

Returns
Type Description
System.Int32

number of inserted items

Remarks

It is possible for DataSource class to expose InsertParameters collection as well

Select(DataSourceSelectArguments)

Makes a selection of items according to specified arguments.

Declaration
IEnumerable Select(DataSourceSelectArguments arguments)
Parameters
Type Name Description
System.Web.UI.DataSourceSelectArguments arguments

arguments

Returns
Type Description
System.Collections.IEnumerable

collection of items

Remarks

It is possible for DataSource class to expose SelectParameters collection as well

Update(IDictionary)

Updates item(s) according to specified values.

Declaration
int Update(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values

arguments

Returns
Type Description
System.Int32

number of updated items

Remarks

It is possible for DataSource class to expose UpdateParameters collection as well

Extension Methods