• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ControllerBase<TEntity, TContract, TSelf>

Inheritance
System.Object
ServiceLocator<TContract, TSelf>
ControllerBase<TEntity, TContract, TSelf>
Inherited Members
ServiceLocator<TContract, TSelf>.Instance
ServiceLocator<TContract, TSelf>.Factory
ServiceLocator<TContract, TSelf>.SetTestableInstance(TContract)
ServiceLocator<TContract, TSelf>.ClearInstance()
ServiceLocator<TContract, TSelf>.GetFactory()
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

| Improve this Doc View Source

ControllerBase()

Initializes a new instance of the ControllerBase<TEntity, TContract, TSelf> class.

Declaration
protected ControllerBase()
| Improve this Doc View Source

ControllerBase(IDataContext)

Initializes a new instance of the ControllerBase<TEntity, TContract, TSelf> class.

Declaration
protected ControllerBase(IDataContext dataContext)
Parameters
Type Name Description
IDataContext dataContext

Fields

| Improve this Doc View Source

DataContext

Declaration
protected readonly IDataContext DataContext
Field Value
Type Description
IDataContext

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
Name Description
TScope
| Improve this Doc View Source

Update(TEntity)

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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS