C# Класс BlogEngine.Core.Providers.XmlBlogProvider

A storage provider for BlogEngine that uses XML files. To build another provider, you can just copy and modify this one. Then add it to the web.config's BlogEngine section.
Наследование: BlogProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
DeletePackage ( string packageId ) : void

Should delete package and remove all package files

DeletePage ( Page page ) : void

Deletes a Page from the data store specified by the provider.

FillPackageFiles ( string packageId ) : List

Gets list of files for installed package

FillPackages ( ) : List

Gets all installed from gallery packages

FillPages ( ) : List

Retrieves all pages from the data store

InsertPage ( Page page ) : void

Inserts a new Page into the data store specified by the provider.

SavePackage ( InstalledPackage package ) : void

Log of all installed packages

SavePackageFiles ( List packageFiles ) : void

Log of all files for installed package

SelectPage ( System.Guid id ) : Page

Retrieves a Page from the provider based on the specified id.

UpdatePage ( Page page ) : void

Updates an existing Page in the data store specified by the provider.

Приватные методы

Метод Описание
AllInstalledFiles ( string pkgId ) : IEnumerable

Описание методов

DeletePackage() публичный Метод

Should delete package and remove all package files
public DeletePackage ( string packageId ) : void
packageId string Package ID
Результат void

DeletePage() публичный Метод

Deletes a Page from the data store specified by the provider.
public DeletePage ( Page page ) : void
page Page The page to delete.
Результат void

FillPackageFiles() публичный Метод

Gets list of files for installed package
public FillPackageFiles ( string packageId ) : List
packageId string Package ID
Результат List

FillPackages() публичный Метод

Gets all installed from gallery packages
public FillPackages ( ) : List
Результат List

FillPages() публичный Метод

Retrieves all pages from the data store
public FillPages ( ) : List
Результат List

InsertPage() публичный Метод

Inserts a new Page into the data store specified by the provider.
public InsertPage ( Page page ) : void
page Page The page to insert.
Результат void

SavePackage() публичный Метод

Log of all installed packages
public SavePackage ( InstalledPackage package ) : void
package InstalledPackage Intalled package
Результат void

SavePackageFiles() публичный Метод

Log of all files for installed package
public SavePackageFiles ( List packageFiles ) : void
packageFiles List List of intalled package files
Результат void

SelectPage() публичный Метод

Retrieves a Page from the provider based on the specified id.
public SelectPage ( System.Guid id ) : Page
id System.Guid The Page id.
Результат Page

UpdatePage() публичный Метод

Updates an existing Page in the data store specified by the provider.
public UpdatePage ( Page page ) : void
page Page The page to update.
Результат void