Skip to content
mbdavid edited this page Mar 14, 2015 · 18 revisions

TODO

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)

Using DbRef and Include

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 =;