Class ControllerBase<TEntity, TContract, TSelf>
Inheritance
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
ControllerBase()
Declaration
protected ControllerBase()
ControllerBase(IDataContext)
Declaration
protected ControllerBase(IDataContext dataContext)
Parameters
Fields
DataContext
Declaration
protected readonly IDataContext DataContext
Field Value
Methods
Add(TEntity)
Declaration
public void Add(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Delete(TEntity)
Declaration
public void Delete(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Find(string, params object[])
Declaration
public IEnumerable<TEntity> Find(string sqlCondition, params object[] args)
Parameters
Returns
Get()
Declaration
public IEnumerable<TEntity> Get()
Returns
Get<TScope>(TScope)
Declaration
public IEnumerable<TEntity> Get<TScope>(TScope scope)
Parameters
Type |
Name |
Description |
TScope |
scope |
|
Returns
Type Parameters
Update(TEntity)
Declaration
public void Update(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Extension Methods