Table of Contents

Class SqlDataProvider

Namespace
Dynamicweb.Data.DataProviders
Assembly
Dynamicweb.Core.dll

Provides data from a sql database

public sealed class SqlDataProvider : SqlDataProviderBase, IParameterOptions
Inheritance
SqlDataProvider
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.

public override IEnumerable<DataItem> GetDataByUser(User user)

Parameters

user User

The user to retrieve data for.

Returns

IEnumerable<DataItem>

A collection of data items found for the given user.

See Also

To top