C# Class Phun.Data.SqlDataRepository

Use by SQL Server Repository to store and retrieve data.
Inheritance: ISqlDataRepository
Mostrar archivo Open project: noogen/phuncms

Public Methods

Method Description
CacheData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : void

Caches the data.

PopulateData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : ContentModel

Populates the data.

PopulateHistoryData ( DapperContext context, ContentModel content, string tableName ) : void

Populates the history data.

RetrieveHistory ( DapperContext context, ContentModel content, string tableName ) : IQueryable

Retrieves the history.

SaveData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : void

Saves the data.

Private Methods

Method Description
ResolvePath ( ContentModel content, string basePath ) : string

Resolves the path.

Method Details

CacheData() public method

Caches the data.
public CacheData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : void
context DapperContext The context.
content ContentModel The content.
tableName string Name of the table.
cachePath string The cache path.
return void

PopulateData() public method

Populates the data.
public PopulateData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : ContentModel
context DapperContext The context.
content ContentModel The content.
tableName string Name of the table.
cachePath string The cache path.
return ContentModel

PopulateHistoryData() public method

Populates the history data.
public PopulateHistoryData ( DapperContext context, ContentModel content, string tableName ) : void
context DapperContext The context.
content ContentModel The content.
tableName string Name of the table.
return void

RetrieveHistory() public method

Retrieves the history.
public RetrieveHistory ( DapperContext context, ContentModel content, string tableName ) : IQueryable
context DapperContext The context.
content ContentModel The content.
tableName string Name of the table.
return IQueryable

SaveData() public method

Saves the data.
public SaveData ( DapperContext context, ContentModel content, string tableName, string cachePath ) : void
context DapperContext The context.
content ContentModel The content.
tableName string Name of the table.
cachePath string The cache path.
return void