Show / Hide Table of Contents

Class ControllerBase<TEntity, TContract, TSelf>

Inheritance
object
ServiceLocator<TContract, TSelf>
ControllerBase<TEntity, TContract, TSelf>
Inherited Members
ServiceLocator<TContract, TSelf>.SetTestableInstance(TContract)
ServiceLocator<TContract, TSelf>.ClearInstance()
ServiceLocator<TContract, TSelf>.GetFactory()
ServiceLocator<TContract, TSelf>.Instance
ServiceLocator<TContract, TSelf>.Factory
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Data
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
Type Name Description
IDataContext dataContext

Fields

DataContext

Declaration
protected readonly IDataContext DataContext
Field Value
Type Description
IDataContext

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
Type Name Description
string sqlCondition
object[] args
Returns
Type Description
IEnumerable<TEntity>

Get()

Declaration
public IEnumerable<TEntity> Get()
Returns
Type Description
IEnumerable<TEntity>

Get<TScope>(TScope)

Declaration
public IEnumerable<TEntity> Get<TScope>(TScope scope)
Parameters
Type Name Description
TScope scope
Returns
Type Description
IEnumerable<TEntity>
Type Parameters
Name Description
TScope

Update(TEntity)

Declaration
public void Update(TEntity entity)
Parameters
Type Name Description
TEntity entity

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS