C# Class InteropApiTests.SetupHelper

Create a directory and an instance pointed at the directory.
Afficher le fichier Open project: ayende/managed-esent Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
InstanceName ( ) : string

Creates a unique name for a new instance.

Method Details

CreateNewInstance() public static méthode

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.
Résultat JET_INSTANCE

CreateRandomDirectory() public static méthode

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
Résultat string

CreateTempTableWithAllColumns() public static méthode

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.
Résultat JET_COLUMNID>.Dictionary

SetLightweightConfiguration() public static méthode

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.
Résultat void