Class DMConnectionData
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Connection data-provider interface.
[Serializable]
public abstract class DMConnectionData
- Inheritance
-
DMConnectionData
- Derived
- Inherited Members
Methods
CriteriaToNativeQuery(Criteria)
Convert criteria to native string, represents this query.
public abstract string CriteriaToNativeQuery(Criteria criteria)
Parameters
criteria
Criteria
Returns
- string
native query string
GetCriteriaVariables(Criteria)
Retrieve list of variables in criteria.
public abstract IEnumerable<QueryVariable> GetCriteriaVariables(Criteria criteria)
Parameters
criteria
Criteria
Returns
InsertTableRow(string, FieldCollection)
Insert new row to specified table.
public abstract bool InsertTableRow(string tableName, FieldCollection fields)
Parameters
tableName
stringtable to insert new row
fields
FieldCollectionfields with values
Returns
- bool
true, if inserted
SelectQuery(Criteria, IEnumerable<QueryVariable>)
Query data using criteria.
public abstract DataTable SelectQuery(Criteria criteria, IEnumerable<QueryVariable> variables)
Parameters
criteria
Criteriacriteria
variables
IEnumerable<QueryVariable>variables
Returns
- DataTable
data table
UpdateTableRow(string, FieldCollection)
Update row in specified table.
public abstract bool UpdateTableRow(string tableName, FieldCollection fields)
Parameters
tableName
stringname of the table
fields
FieldCollectionfields with values to update
Returns
- bool
true, if updated