C# Class Phun.Data.SqlDataRepository

Use by SQL Server Repository to store and retrieve data.
Inheritance: ISqlDataRepository
Afficher le fichier Open project: noogen/phuncms

Méthodes publiques

Méthode 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

Méthode Description
ResolvePath ( ContentModel content, string basePath ) : string

Resolves the path.

Method Details

CacheData() public méthode

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.
Résultat void

PopulateData() public méthode

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.
Résultat ContentModel

PopulateHistoryData() public méthode

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.
Résultat void

RetrieveHistory() public méthode

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.
Résultat IQueryable

SaveData() public méthode

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.
Résultat void