Azure document db
- 3. 關聯式資料庫
◦ SQL Database (PaaS)
◦ SQL Server (IaaS)
NoSQL
◦ Azure Table (Key-Value)
◦ Azure DocumentDB (document database)
- 4. 非關聯式資料庫(NoSQL document database)
JSON document
Support SQL Query
Only Self-join
LINQ-to-SQL Support for.NET
- 5. DocumentDB 是 Microsoft 提供的 Document-Based
NoSQL方案,具備NoSQL資料庫的優點,但同時可
以使用SQL 語法查詢資料,對於RDBMS 的使用者可
以無痛學會如何查詢資料
OneNote就是使用DocumentDB來提供服務
- 8. DocumentClient client =
new DocumentClient(new Uri(_uri), _authkey)
var db = client.CreateDatabaseQuery()
.Where(d => d.Id == _dbid)
.AsEnumerable()
.FirstOrDefault();
- 9. var collection = client.CreateDocumentCollectionQuery(db.SelfLink)
.Where(c => c.Id == "item")
.AsEnumerable()
.FirstOrDefault();
foreach (var item in
client.CreateDocumentQuery<ToDoItem>(collection.SelfLink
, "select * from item "))
{
result.Add(item);
}
- 11. Building Web Application with ASP.NET MVC using
Azure DocumentDB