C# 클래스 InteropApiTests.SetupHelper

Create a directory and an instance pointed at the directory.
파일 보기 프로젝트 열기: ayende/managed-esent 1 사용 예제들

공개 메소드들

메소드 설명
CreateNewInstance ( string myDir ) : JET_INSTANCE

Create a new instance and set its log/system/temp directories to the given directory.

CreateRandomDirectory ( ) : string

Creates a new random directory in the current working directory. This should be used to ensure that each test runs in its own directory.

CreateTempTableWithAllColumns ( JET_SESID sesid, TempTableGrbit grbit, JET_TABLEID &tableid ) : JET_COLUMNID>.Dictionary

Creates a standard temp table with a column for each type.

SetLightweightConfiguration ( Microsoft.Isam.Esent.Interop.Instance instance ) : void

Turns off logging, disables the temp DB and turns off events.

비공개 메소드들

메소드 설명
InstanceName ( ) : string

Creates a unique name for a new instance.

메소드 상세

CreateNewInstance() 공개 정적인 메소드

Create a new instance and set its log/system/temp directories to the given directory.
public static CreateNewInstance ( string myDir ) : JET_INSTANCE
myDir string The directory to use.
리턴 JET_INSTANCE

CreateRandomDirectory() 공개 정적인 메소드

Creates a new random directory in the current working directory. This should be used to ensure that each test runs in its own directory.
public static CreateRandomDirectory ( ) : string
리턴 string

CreateTempTableWithAllColumns() 공개 정적인 메소드

Creates a standard temp table with a column for each type.
public static CreateTempTableWithAllColumns ( JET_SESID sesid, TempTableGrbit grbit, JET_TABLEID &tableid ) : JET_COLUMNID>.Dictionary
sesid JET_SESID The session to use.
grbit TempTableGrbit Temporary table options.
tableid JET_TABLEID Returns the temporary table.
리턴 JET_COLUMNID>.Dictionary

SetLightweightConfiguration() 공개 정적인 메소드

Turns off logging, disables the temp DB and turns off events.
public static SetLightweightConfiguration ( Microsoft.Isam.Esent.Interop.Instance instance ) : void
instance Microsoft.Isam.Esent.Interop.Instance The instance to configure.
리턴 void