Persistent data of content with DataProvider instance.

Namespace: DotNetNuke.Entities.Content.Data
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public class DataService : IDataService
Visual Basic
Public Class DataService
	Implements IDataService

Remarks

It's better to use Util.GetDataService instead of create new instance directly.

Examples

C# Copy imageCopy Code
public ContentController() : this(Util.GetDataService())
{
}
public ContentController(IDataService dataService)
{
    _dataService = dataService;
}

Inheritance Hierarchy

System..::..Object
  DotNetNuke.Entities.Content.Data..::..DataService

See Also