![]() In this example, both code snippets produce the same results. Internally LiteDB converts T to BsonDocument and all operations use the this generic document. LiteCollection is a generic class that can be used with as BsonDocument for schema-less documents. Running a query, delete or update on a document in a non existing collection does not create one. For example, if collection names are about 10 bytes in length, you can have ~800 collection in the database.Ĭollections are auto created on first Insert or EnsureIndex operation. If you plan to have many collections in your database, make sure to use short names for your collections. The total size of all the collections names in a database is limited to 8000 bytes. ![]() Collection names starting with $ are reserved for internal system/virtual collections.Collection names starting with _ are reserved for internal storage use.LiteCollection is a generic class that is used to manage collections in LiteDB. Documents are stored and organized in collections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |