Tôi muốn tạo tài liệu trong documentdb xanh với cột tăng tự động.Cách tạo cột tăng tự động trong Documentdb
Điều này có khả thi không? Nếu có, xin vui lòng hướng dẫn tôi.
Mọi trợ giúp sẽ được đánh giá cao.
Database db = CreateOrReadDocumentDb("EmployeeDb").Result;
DocumentCollection dc = CreateOrReadDocumentCollection(db.SelfLink, "EmployeeDetails").Result;
Employee emp = new Employee();
emp.Name="ABC";
emp.id="";//automatically generate a unique string
emp.sal=10000;
emp.exp =5;
emp.index=0; // I want an auto increment column for emp with name index and want to store in azure document db
client.CreateDocumentAsync(collectionLink, data);
không chính xác, tôi sẽ sửa câu hỏi của tôi :) –
bản sao có thể có của [Chúng tôi có cột nhận dạng trong DocumentDB] (http://stackoverflow.com/questions/26701587/do-we-have-identity-column-in -documentdb) –
nhờ Abdel Raoof :) –