-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Collections
mbdavid edited this page Mar 14, 2015
·
18 revisions
Documents are stored in collections. Collection is a way to organize your common documents, like tables in SQL databases. LiteDB has many method to insert, update, delete and find documents in collection.
When you have strong typed document, you can use strong typed collections. It's ease to be use and auto-cast documents type.
var customers = db.GetCollection<Customer>("collectionName");
customers.Insert(customer)
Customer c = customer.FindBydId(123)
Document database has no joins between documents. When you are modeling, you can embeded referen document (desnormalizing your model) or create a refence to another document.
var x =;
Data Modeling
- Data Structure
- BsonDocument
- Object Mapping
- Relationships with Document References
- Collections
- FileStorage
Index
Query
Database
Version 4 changes
Shell