C# 클래스 Phun.Data.SqlContentRepository

IContentRepository implementation for SQL store.
상속: AContentRepository, IContentRepository
파일 보기 프로젝트 열기: noogen/phuncms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
CachePath string
ConnectionStringName string
DataRepository ISqlDataRepository
TableName string

공개 메소드들

메소드 설명
Exists ( ContentModel content ) : bool

Check for exist of content.

List ( ContentModel content ) : IQueryable

Lists the specified content.Path

Remove ( ContentModel content ) : void

Removes the specified content path or route.

Retrieve ( ContentModel content, bool includeData = true ) : ContentModel

Populate or gets the content provided specific host, path, and name property.

Save ( ContentModel content ) : void

Saves the specified content.

SqlContentRepository ( IMapRouteConfiguration config ) : System

Initializes a new instance of the SqlContentRepository class.

SqlContentRepository ( ISqlDataRepository dataRepo, string connectionStringName, string tableName, string cachePath ) : System

Initializes a new instance of the SqlContentRepository class.

보호된 메소드들

메소드 설명
EnsureSchema ( ) : void

Ensures the schema.

비공개 메소드들

메소드 설명
Initialize ( ISqlDataRepository dataRepo, string connectionStringName, string tableName, string cachePath ) : void

Initializes the specified data repo.

Save ( ContentModel content, DapperContext db ) : void

메소드 상세

EnsureSchema() 보호된 메소드

Ensures the schema.
protected EnsureSchema ( ) : void
리턴 void

Exists() 공개 메소드

Check for exist of content.
public Exists ( ContentModel content ) : bool
content ContentModel The content - requires host, path, and name property.
리턴 bool

List() 공개 메소드

Lists the specified content.Path
public List ( ContentModel content ) : IQueryable
content ContentModel The content.
리턴 IQueryable

Remove() 공개 메소드

Removes the specified content path or route.
public Remove ( ContentModel content ) : void
content ContentModel The content - requires host, path, and name property. If name is set to "*" then removes all for host and path.
리턴 void

Retrieve() 공개 메소드

Populate or gets the content provided specific host, path, and name property.
public Retrieve ( ContentModel content, bool includeData = true ) : ContentModel
content ContentModel The content - requires host, path, and name property.
includeData bool if set to true [include data].
리턴 ContentModel

Save() 공개 메소드

Saves the specified content.
public Save ( ContentModel content ) : void
content ContentModel The content - requires host, path, and name property.
리턴 void

SqlContentRepository() 공개 메소드

Initializes a new instance of the SqlContentRepository class.
public SqlContentRepository ( IMapRouteConfiguration config ) : System
config IMapRouteConfiguration The config.
리턴 System

SqlContentRepository() 공개 메소드

Initializes a new instance of the SqlContentRepository class.
Connection does not exist.
public SqlContentRepository ( ISqlDataRepository dataRepo, string connectionStringName, string tableName, string cachePath ) : System
dataRepo ISqlDataRepository The data repo.
connectionStringName string Name of the connection string.
tableName string Name of the table.
cachePath string The cache path.
리턴 System

프로퍼티 상세

CachePath 보호되어 있는 프로퍼티

The cache path
protected string CachePath
리턴 string

ConnectionStringName 보호되어 있는 프로퍼티

The connection string name
protected string ConnectionStringName
리턴 string

DataRepository 보호되어 있는 프로퍼티

The data repository
protected ISqlDataRepository DataRepository
리턴 ISqlDataRepository

TableName 보호되어 있는 프로퍼티

The table name
protected string TableName
리턴 string