Class ControllerBase<TEntity, TContract, TSelf>
Inheritance
System.Object
ControllerBase<TEntity, TContract, TSelf>
Assembly: DotNetNuke.dll
Syntax
public abstract class ControllerBase<TEntity, TContract, TSelf> : ServiceLocator<TContract, TSelf> where TEntity : class where TSelf : ServiceLocator<TContract, TSelf>, new()
Type Parameters
Name |
Description |
TEntity |
|
TContract |
|
TSelf |
|
Constructors
|
Improve this Doc
View Source
ControllerBase()
Declaration
protected ControllerBase()
|
Improve this Doc
View Source
ControllerBase(IDataContext)
Declaration
protected ControllerBase(IDataContext dataContext)
Parameters
Fields
|
Improve this Doc
View Source
DataContext
Declaration
protected readonly IDataContext DataContext
Field Value
Methods
|
Improve this Doc
View Source
Add(TEntity)
Declaration
public void Add(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Delete(TEntity)
Declaration
public void Delete(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
|
Improve this Doc
View Source
Find(String, Object[])
Declaration
public IEnumerable<TEntity> Find(string sqlCondition, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
sqlCondition |
|
System.Object[] |
args |
|
Returns
Type |
Description |
IEnumerable<TEntity> |
|
|
Improve this Doc
View Source
Get()
Declaration
public IEnumerable<TEntity> Get()
Returns
Type |
Description |
IEnumerable<TEntity> |
|
|
Improve this Doc
View Source
Get<TScope>(TScope)
Declaration
public IEnumerable<TEntity> Get<TScope>(TScope scope)
Parameters
Type |
Name |
Description |
TScope |
scope |
|
Returns
Type |
Description |
IEnumerable<TEntity> |
|
Type Parameters
|
Improve this Doc
View Source
Update(TEntity)
Declaration
public void Update(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Extension Methods