如何在mongodb表中分配主键和自动增量 [英] How to assign primary key and auto increment in mongodb table
本文介绍了如何在mongodb表中分配主键和自动增量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我如何在mongodb表中设置主键
i使用C#.net 4.0
所以请建议我使用这项技术
Please say me about how to set primary key in mongodb table
i working on C#.net 4.0
so please suggest me on this technology
推荐答案
请参阅以下链接
http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/ [ ^ ]
Please refer the below link
http://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/[^]
这篇关于如何在mongodb表中分配主键和自动增量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文