C# 클래스 Sitecore.FakeDb.Db

Creates Sitecore items in memory.
상속: IDisposable, IEnumerable
파일 보기 프로젝트 열기: sergeyshushlyapin/Sitecore.FakeDb 1 사용 예제들

공개 메소드들

메소드 설명
Add ( DbItem item ) : void

Adds a DbItem to the current database.

Db ( ) : System

Initializes a new instance of the Db class with the "master" database.

Db ( string databaseName ) : System

Initializes a new instance of the Db class with the specified database.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetEnumerator ( ) : IEnumerator
GetItem ( ID id ) : System.Item

Gets an Item by id.

GetItem ( ID id, string language ) : System.Item

Gets an Item by id and language.

GetItem ( ID id, string language, int version ) : System.Item

Gets an Item by id, language and version number.

GetItem ( string path ) : System.Item

Gets an Item by path.

GetItem ( string path, string language ) : System.Item

Gets an Item by path and language.

GetItem ( string path, string language, int version ) : System.Item

Gets an Item by path, language and version number.

WithLanguages ( ) : Db

Specifies a list of available Database languages for the given Db context. If not called, the 'en' language is used.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

비공개 메소드들

메소드 설명
Db ( Sitecore.FakeDb.Pipelines.PipelineWatcher pipelineWatcher ) : System
GetConfiguration ( ) : XmlDocument

메소드 상세

Add() 공개 메소드

Adds a DbItem to the current database.
public Add ( DbItem item ) : void
item DbItem The item to add.
리턴 void

Db() 공개 메소드

Initializes a new instance of the Db class with the "master" database.
public Db ( ) : System
리턴 System

Db() 공개 메소드

Initializes a new instance of the Db class with the specified database.
public Db ( string databaseName ) : System
databaseName string The database name.
리턴 System

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool True if disposing, otherwise false.
리턴 void

GetEnumerator() 공개 메소드

public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

GetItem() 공개 메소드

Gets an Item by id.
public GetItem ( ID id ) : System.Item
id ID The item id.
리턴 System.Item

GetItem() 공개 메소드

Gets an Item by id and language.
public GetItem ( ID id, string language ) : System.Item
id ID The item id.
language string The item language.
리턴 System.Item

GetItem() 공개 메소드

Gets an Item by id, language and version number.
public GetItem ( ID id, string language, int version ) : System.Item
id ID The item id.
language string The item language.
version int The item version.
리턴 System.Item

GetItem() 공개 메소드

Gets an Item by path.
public GetItem ( string path ) : System.Item
path string The item path.
리턴 System.Item

GetItem() 공개 메소드

Gets an Item by path and language.
public GetItem ( string path, string language ) : System.Item
path string The item path.
language string The item language.
리턴 System.Item

GetItem() 공개 메소드

Gets an Item by path, language and version number.
public GetItem ( string path, string language, int version ) : System.Item
path string The item path.
language string The item language.
version int The item version.
리턴 System.Item

WithLanguages() 공개 메소드

Specifies a list of available Database languages for the given Db context. If not called, the 'en' language is used.
public WithLanguages ( ) : Db
리턴 Db