Class SqlDataProvider
- Namespace
- Dynamicweb.Data.Data
Providers
- Assembly
- Dynamicweb.Core.dll
Provides data from a sql database
- Inheritance
-
Sql
Data Provider
- Implements
- Inherited Members
Properties
TableColumnNames
Gets or sets the table column names.
[AddInParameter("TableColumnNames")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "multiple=true;")]
public string TableColumnNames { get; set; }
Property Value
- string
The table column names.
TableName
Gets or sets the name of the table.
[AddInParameter("TableName")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "refreshParameters=true;SortBy=Value;")]
public string TableName { get; set; }
Property Value
- string
The name of the table.
TableUserIdColumnName
Gets or sets the name of the table user identifier column.
[AddInParameter("TableUserIdColumnName")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "SortBy=Value;")]
public string TableUserIdColumnName { get; set; }
Property Value
- string
The name of the table user identifier column.
Methods
GetDataByUser(User)
Gets data related to a given user.
Parameters
user
UserThe user to retrieve data for.
Returns
- IEnumerable<Data
Item > A collection of data items found for the given user.