• Inverse solution of objectid in. Net core


    preface When designing a database, we usually need to assign a primary key to the business data table. In many cases, in order to save trouble, I use the guidguuid directly. However, in monggodb, objectid (hereinafter referred to as OID) is implemented internally. The implementation of the source code is given in the driver of. […]

  • Deep into Obtaining Time Information from MongoDB’s ObjectId


    MongoDB defaults to using the _id field as the primary key, with the type ObjectId. There are certain rules for generating ObjectId, and you can see this article for more details – ObjectId in MongoDB. If you forget to write the creation time when you write to the database, don’t worry, you can restore the […]