学习 CosmosDB (NoSql)

Microsoft Azure官网
学习cosmos DB,也称作 documentDB,NoSql,不是关系型数据库,数据以Json的格式存储,灵活性强。

1.DLL

2.Connector settings

string EndpointUrl = "";
string PrimaryKey = "";

3.Create database

4.Create collection(table)

5.Update

6.Delete

在所有操作前,一定要确保这个collection在database中存在,所以在初始化的时候,应该把cosmosDB中所有的collection都遍历,
判断是否存在,不然其他的api接口操作异常。

posted @ 2018-03-21 11:34  肖恩部落  阅读(3917)  评论(0编辑  收藏  举报