C# Class DocumentDBRepository, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode Description
CreateItemAsync ( item ) : Task
DeleteItemAsync ( string id ) : Task,
GetItemAsync ( string id ) : Task
GetItemsAsync ( Expression, predicate ) : Task>
Initialize ( ) : void
UpdateItemAsync ( string id, item ) : Task

Private Methods

Méthode Description
CreateCollectionIfNotExistsAsync ( ) : Task,
CreateDatabaseIfNotExistsAsync ( ) : Task,

Method Details

CreateItemAsync() public static méthode

public static CreateItemAsync ( item ) : Task
Résultat Task

DeleteItemAsync() public static méthode

public static DeleteItemAsync ( string id ) : Task,
id string
Résultat Task,

GetItemAsync() public static méthode

public static GetItemAsync ( string id ) : Task
id string
Résultat Task

GetItemsAsync() public static méthode

public static GetItemsAsync ( Expression, predicate ) : Task>
predicate Expression,
Résultat Task>

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

UpdateItemAsync() public static méthode

public static UpdateItemAsync ( string id, item ) : Task
id string
Résultat Task