当前位置:首页 > 数据库 > nosql

学习 CosmosDB (NoSql)

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

1.DLL

学习 CosmosDB (NoSql) - 文章图片

2.Connector settings

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

学习 CosmosDB (NoSql) - 文章图片

3.Create database

学习 CosmosDB (NoSql) - 文章图片

4.Create collection(table)

学习 CosmosDB (NoSql) - 文章图片

学习 CosmosDB (NoSql) - 文章图片

5.Update

学习 CosmosDB (NoSql) - 文章图片

6.Delete

学习 CosmosDB (NoSql) - 文章图片

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

学习 CosmosDB (NoSql)

标签:string   div   data   src   alt   初始   create   遍历   href   

本文系统来源:https://www.cnblogs.com/shy-huang/p/8616055.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!