C# Class DocumentDBRepository, code

显示文件 Open project: shendongnian/code Class Usage Examples

Public Methods

Method 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

Method Description
CreateCollectionIfNotExistsAsync ( ) : Task,
CreateDatabaseIfNotExistsAsync ( ) : Task,

Method Details

CreateItemAsync() public static method

public static CreateItemAsync ( item ) : Task
return Task

DeleteItemAsync() public static method

public static DeleteItemAsync ( string id ) : Task,
id string
return Task,

GetItemAsync() public static method

public static GetItemAsync ( string id ) : Task
id string
return Task

GetItemsAsync() public static method

public static GetItemsAsync ( Expression, predicate ) : Task>
predicate Expression,
return Task>

Initialize() public static method

public static Initialize ( ) : void
return void

UpdateItemAsync() public static method

public static UpdateItemAsync ( string id, item ) : Task
id string
return Task