...
Supported Client Libraries
Supported Operations
Operation | Methods Supported |
---|---|
Create |
|
Insert |
|
Update |
|
Select |
|
Delete |
|
Objects
Icon | Description |
---|---|
DotNet CosmosDB Database | |
DotNet CosmosDB Collection | |
| DotNet CosmosDB Unknown Database |
| DotNet CosmosDB Unknown Collection |
...
Link type | When is this created? | Methods Supported |
---|---|---|
parentLink | Between Azure CosmosDB database object and Azure CosmosDB collection object | |
useLink | Between the caller .NET Method objects and Azure CosmosDB collection object |
|
useInsertLink |
| |
useUpdateLink |
| |
useSelectLink |
| |
useDeletetLink |
|
...
Azure Cosmos DB Database and Table Creation
Expand | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
| public class CosmosDBApplication
{
private const string EndpointUrl = .......;
private const string PrimaryKey = .........;
private DocumentClient client ;
private string databaseName = "FamilyDatabase";
private string collName = "FamilyCollection";
public static void Main()
{
this.client = new DocumentClient(new Uri(EndpointUrl), PrimaryKey);
}
private async Task CreateDatabase()
{
|
...
|
Insert Operation
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
| PutItem
|
...
|
Select Operation
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
...
|
...
|
Update Operation
...
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
| CreateDocumentQuery
|
| ReplaceDocumentAsync
|
...
|
Upsert Operation
Expand | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
| ReplaceDocumentCollectionAsync
|
...
|
Delete Operation
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
|
Evolution
- Previously, only files consisting of relevant Azure CosmosDB imports were processed further for analysing.
- Support has been evolved to process a file when it does not contain Azure CosmosDB import but makes use of its methods (APIs). Assumption here is file makes use of same namespace as used in the file containing Azure CosmosDB imports.
Limitations
- Database and collection names are resolved as known objects only in the following situations:
- Name is hardcoded
- Name is defined in the variable in the local method
- Name is defined as C# field
- Name is provided in the App.config file
- Database object is used while creating the database
- DocumentCollection object is used while creating the collection
Future development
...
|
Evolution
- Better resolution of Database and Collection names
- Provided support to additional APIs
Limitations
- Unknown database and collection objects are created when unable to resolve Database and Collection
- If the collection name is not resolved in the CRUD API, then link is created between method and Unknown collection object
Future Development
- Support for Version .NET SDK 3.x