C# 클래스 BlogEngine.Core.Providers.DbBlogProvider

Generic Database BlogProvider
상속: BlogProvider
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

공개 메소드들

메소드 설명
DeleteBlog ( Blog blog ) : void

Deletes a Blog from the database

DeleteBlogRollItem ( BlogRollItem blogRollItem ) : void

Deletes a BlogRoll from the database

DeleteBlogStorageContainer ( Blog blog ) : bool

Deletes the blog's storage container.

DeleteCategory ( Category category ) : void

Deletes a category from the database

DeletePackage ( string packageId ) : void

Should delete package and remove all package files

DeletePage ( Page page ) : void

Deletes a page from the database

DeletePost ( Post post ) : void

Deletes a post in the database

DeleteProfile ( AuthorProfile profile ) : void

Remove AuthorProfile from database

DeleteQuickNote ( System.Guid noteId ) : void

Delete quick note

FillBlogRoll ( ) : List

Gets all BlogRolls in database

FillBlogs ( ) : List

Gets all Blogs in database

FillCategories ( ) : List

Gets all categories in database

FillPackageFiles ( string packageId ) : List

Gets list of files for installed package

FillPackages ( ) : List

Gets all installed from gallery packages

FillPages ( ) : List

Gets all pages in database

FillPosts ( ) : List

Gets all post from the database

FillProfiles ( ) : List

Return collection for AuthorProfiles from database

FillQuickNotes ( string userId ) : List

Fill quick notes

FillQuickSettings ( string userId ) : List

Fill quick settings

FillReferrers ( ) : List

Gets all Referrers from the database.

FillRights ( ) : IEnumerable>.IDictionary
Initialize ( string name, NameValueCollection config ) : void

Initializes the provider

InsertBlog ( Blog blog ) : void

Adds a new blog to the database.

InsertBlogRollItem ( BlogRollItem blogRollItem ) : void

Adds a new BlogRoll to the database.

InsertCategory ( Category category ) : void

Adds a new category to the database

InsertPage ( Page page ) : void

Adds a page to the database

InsertPost ( Post post ) : void

Adds a new post to database

InsertProfile ( AuthorProfile profile ) : void

Adds AuthorProfile to database

InsertReferrer ( Referrer referrer ) : void

Adds a new Referrer to the database.

LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object

Load user data from DataStore

LoadPingServices ( ) : StringCollection

Gets the PingServices from the database

LoadSettings ( ) : StringDictionary

Gets the settings from the database

LoadStopWords ( ) : StringCollection

Get stopwords from the database

RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void

Deletes an item from the dataStore

SavePackage ( BlogEngine.Core.Packaging.InstalledPackage package ) : void

Log of all installed packages

SavePackageFiles ( List packageFiles ) : void

Log of all files for installed package

SavePingServices ( StringCollection services ) : void

Saves the PingServices to the database

SaveQuickNote ( QuickNote note ) : void

Save quick note

SaveQuickSetting ( QuickSetting setting ) : void

Save quick setting

SaveRights ( IEnumerable rights ) : void
SaveSettings ( StringDictionary settings ) : void

Saves the settings to the database

SaveToDataStore ( ExtensionType extensionType, string extensionId, object settings ) : void

Save to DataStore

SelectBlog ( System.Guid id ) : Blog

Gets a Blog based on a Guid.

SelectBlogRollItem ( System.Guid id ) : BlogRollItem

Gets a BlogRoll based on a Guid.

SelectCategory ( System.Guid id ) : Category

Returns a category

SelectPage ( System.Guid id ) : Page

Returns a page for given ID

SelectPost ( System.Guid id ) : Post

Returns a Post based on Id.

SelectProfile ( string id ) : AuthorProfile

Loads AuthorProfile from database

SelectReferrer ( System.Guid id ) : Referrer

Gets a Referrer based on an Id.

SetupBlogFromExistingBlog ( Blog existingBlog, Blog newBlog ) : bool

Sets up the required storage files/tables for a new Blog instance, from an existing blog instance.

UpdateBlog ( Blog blog ) : void

Saves an existing Blog to the database

UpdateBlogRollItem ( BlogRollItem blogRollItem ) : void

Saves an existing BlogRoll to the database

UpdateCategory ( Category category ) : void

Saves an existing category to the database

UpdatePage ( Page page ) : void

Saves an existing page in the database

UpdatePost ( Post post ) : void

Saves and existing post in the database

UpdateProfile ( AuthorProfile profile ) : void

Updates AuthorProfile to database

UpdateReferrer ( Referrer referrer ) : void

Saves an existing Referrer to the database.

비공개 메소드들

메소드 설명
AddBlogParametersToCommand ( Blog blog, DbConnectionHelper conn, DbCommand cmd ) : void

Adds blog parameters to command.

AddBlogRollParametersToCommand ( BlogRollItem blogRollItem, DbConnectionHelper conn, DbCommand cmd ) : void

The add blog roll parameters to command.

AddReferrersParametersToCommand ( Referrer referrer, DbConnectionHelper conn, DbCommand cmd ) : void

The add referrers parameters to command.

CreateConnection ( ) : DbConnectionHelper

Creates a new DbConnectionHelper for this DbBlogProvider instance.

DeleteOldReferrers ( ) : void

The delete old referrers.

FormatParamName ( string parameterName ) : string

Returns a formatted parameter name to include this DbBlogProvider instance's paramPrefix.

UpdateCategories ( Post post, DbConnectionHelper conn ) : void

The update categories.

UpdateComments ( Post post, DbConnectionHelper conn ) : void

The update comments.

UpdateNotify ( Post post, DbConnectionHelper conn ) : void

The update notify.

UpdateTags ( Post post, DbConnectionHelper conn ) : void

The update tags.

메소드 상세

DeleteBlog() 공개 메소드

Deletes a Blog from the database
public DeleteBlog ( Blog blog ) : void
blog Blog /// The blog. ///
리턴 void

DeleteBlogRollItem() 공개 메소드

Deletes a BlogRoll from the database
public DeleteBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blog Roll Item. ///
리턴 void

DeleteBlogStorageContainer() 공개 메소드

Deletes the blog's storage container.
public DeleteBlogStorageContainer ( Blog blog ) : bool
blog Blog /// The blog. ///
리턴 bool

DeleteCategory() 공개 메소드

Deletes a category from the database
public DeleteCategory ( Category category ) : void
category Category /// category to be removed ///
리턴 void

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 database
public DeletePage ( Page page ) : void
page Page /// page to be deleted ///
리턴 void

DeletePost() 공개 메소드

Deletes a post in the database
public DeletePost ( Post post ) : void
post Post /// post to delete ///
리턴 void

DeleteProfile() 공개 메소드

Remove AuthorProfile from database
public DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile An AuthorProfile.
리턴 void

DeleteQuickNote() 공개 메소드

Delete quick note
public DeleteQuickNote ( System.Guid noteId ) : void
noteId System.Guid Note ID
리턴 void

FillBlogRoll() 공개 메소드

Gets all BlogRolls in database
public FillBlogRoll ( ) : List
리턴 List

FillBlogs() 공개 메소드

Gets all Blogs in database
public FillBlogs ( ) : List
리턴 List

FillCategories() 공개 메소드

Gets all categories in database
public FillCategories ( ) : List
리턴 List

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() 공개 메소드

Gets all pages in database
public FillPages ( ) : List
리턴 List

FillPosts() 공개 메소드

Gets all post from the database
public FillPosts ( ) : List
리턴 List

FillProfiles() 공개 메소드

Return collection for AuthorProfiles from database
public FillProfiles ( ) : List
리턴 List

FillQuickNotes() 공개 메소드

Fill quick notes
public FillQuickNotes ( string userId ) : List
userId string User ID
리턴 List

FillQuickSettings() 공개 메소드

Fill quick settings
public FillQuickSettings ( string userId ) : List
userId string User ID
리턴 List

FillReferrers() 공개 메소드

Gets all Referrers from the database.
public FillReferrers ( ) : List
리턴 List

FillRights() 공개 메소드

public FillRights ( ) : IEnumerable>.IDictionary
리턴 IEnumerable>.IDictionary

Initialize() 공개 메소드

Initializes the provider
public Initialize ( string name, NameValueCollection config ) : void
name string /// Configuration name ///
config System.Collections.Specialized.NameValueCollection /// Configuration settings ///
리턴 void

InsertBlog() 공개 메소드

Adds a new blog to the database.
public InsertBlog ( Blog blog ) : void
blog Blog /// The blog. ///
리턴 void

InsertBlogRollItem() 공개 메소드

Adds a new BlogRoll to the database.
public InsertBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blog Roll Item. ///
리턴 void

InsertCategory() 공개 메소드

Adds a new category to the database
public InsertCategory ( Category category ) : void
category Category /// category to add ///
리턴 void

InsertPage() 공개 메소드

Adds a page to the database
public InsertPage ( Page page ) : void
page Page /// page to be added ///
리턴 void

InsertPost() 공개 메소드

Adds a new post to database
public InsertPost ( Post post ) : void
post Post /// The new post. ///
리턴 void

InsertProfile() 공개 메소드

Adds AuthorProfile to database
public InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile An AuthorProfile.
리턴 void

InsertReferrer() 공개 메소드

Adds a new Referrer to the database.
public InsertReferrer ( Referrer referrer ) : void
referrer Referrer /// Referrer to add. ///
리턴 void

LoadFromDataStore() 공개 메소드

Load user data from DataStore
public LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object
extensionType ExtensionType /// type of info ///
extensionId string /// id of info ///
리턴 object

LoadPingServices() 공개 메소드

Gets the PingServices from the database
public LoadPingServices ( ) : StringCollection
리턴 System.Collections.Specialized.StringCollection

LoadSettings() 공개 메소드

Gets the settings from the database
public LoadSettings ( ) : StringDictionary
리턴 System.Collections.Specialized.StringDictionary

LoadStopWords() 공개 메소드

Get stopwords from the database
public LoadStopWords ( ) : StringCollection
리턴 System.Collections.Specialized.StringCollection

RemoveFromDataStore() 공개 메소드

Deletes an item from the dataStore
public RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void
extensionType ExtensionType /// type of item ///
extensionId string /// id of item ///
리턴 void

SavePackage() 공개 메소드

Log of all installed packages
public SavePackage ( BlogEngine.Core.Packaging.InstalledPackage package ) : void
package BlogEngine.Core.Packaging.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

SavePingServices() 공개 메소드

Saves the PingServices to the database
public SavePingServices ( StringCollection services ) : void
services System.Collections.Specialized.StringCollection /// collection of PingServices ///
리턴 void

SaveQuickNote() 공개 메소드

Save quick note
public SaveQuickNote ( QuickNote note ) : void
note BlogEngine.Core.Notes.QuickNote Quick note
리턴 void

SaveQuickSetting() 공개 메소드

Save quick setting
public SaveQuickSetting ( QuickSetting setting ) : void
setting BlogEngine.Core.Notes.QuickSetting Quick setting
리턴 void

SaveRights() 공개 메소드

public SaveRights ( IEnumerable rights ) : void
rights IEnumerable
리턴 void

SaveSettings() 공개 메소드

Saves the settings to the database
public SaveSettings ( StringDictionary settings ) : void
settings System.Collections.Specialized.StringDictionary /// dictionary of settings ///
리턴 void

SaveToDataStore() 공개 메소드

Save to DataStore
public SaveToDataStore ( ExtensionType extensionType, string extensionId, object settings ) : void
extensionType ExtensionType /// type of info ///
extensionId string /// id of info ///
settings object /// data of info ///
리턴 void

SelectBlog() 공개 메소드

Gets a Blog based on a Guid.
public SelectBlog ( System.Guid id ) : Blog
id System.Guid /// The Blog's Guid. ///
리턴 Blog

SelectBlogRollItem() 공개 메소드

Gets a BlogRoll based on a Guid.
public SelectBlogRollItem ( System.Guid id ) : BlogRollItem
id System.Guid /// The BlogRoll's Guid. ///
리턴 BlogRollItem

SelectCategory() 공개 메소드

Returns a category
public SelectCategory ( System.Guid id ) : Category
id System.Guid Id of category to return
리턴 Category

SelectPage() 공개 메소드

Returns a page for given ID
public SelectPage ( System.Guid id ) : Page
id System.Guid /// ID of page to return ///
리턴 Page

SelectPost() 공개 메소드

Returns a Post based on Id.
public SelectPost ( System.Guid id ) : Post
id System.Guid /// The Post ID. ///
리턴 Post

SelectProfile() 공개 메소드

Loads AuthorProfile from database
public SelectProfile ( string id ) : AuthorProfile
id string The user name.
리턴 AuthorProfile

SelectReferrer() 공개 메소드

Gets a Referrer based on an Id.
public SelectReferrer ( System.Guid id ) : Referrer
id System.Guid /// The Referrer Id. ///
리턴 Referrer

SetupBlogFromExistingBlog() 공개 메소드

Sets up the required storage files/tables for a new Blog instance, from an existing blog instance.
public SetupBlogFromExistingBlog ( Blog existingBlog, Blog newBlog ) : bool
existingBlog Blog /// The existing blog to copy from. ///
newBlog Blog /// The new blog to copy to. ///
리턴 bool

UpdateBlog() 공개 메소드

Saves an existing Blog to the database
public UpdateBlog ( Blog blog ) : void
blog Blog /// Blog to be saved ///
리턴 void

UpdateBlogRollItem() 공개 메소드

Saves an existing BlogRoll to the database
public UpdateBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// BlogRoll to be saved ///
리턴 void

UpdateCategory() 공개 메소드

Saves an existing category to the database
public UpdateCategory ( Category category ) : void
category Category /// category to be saved ///
리턴 void

UpdatePage() 공개 메소드

Saves an existing page in the database
public UpdatePage ( Page page ) : void
page Page /// page to be saved ///
리턴 void

UpdatePost() 공개 메소드

Saves and existing post in the database
public UpdatePost ( Post post ) : void
post Post /// post to be saved ///
리턴 void

UpdateProfile() 공개 메소드

Updates AuthorProfile to database
public UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// An AuthorProfile. ///
리턴 void

UpdateReferrer() 공개 메소드

Saves an existing Referrer to the database.
public UpdateReferrer ( Referrer referrer ) : void
referrer Referrer /// Referrer to be saved. ///
리턴 void