LiteOrm在线文档

Example Index

This page groups current LiteOrm examples by scenario instead of by chapter. Most examples come from LiteOrm.Demo (end-to-end flows) and LiteOrm.Tests (edge cases and verifiable patterns).

1. End-to-end onboarding

Minimal path from configuration to CRUD

2. Query examples

Choosing between Lambda, Expr, and ExprString

EXISTS, Expr.ExistsRelated(...), and subqueries

Common predicates and set operations

3. Write and batch examples

Batch insert, update, and delete

Upsert and mixed batch processing

4. Association examples

Minimal ForeignType + ForeignColumn flow

Multi-level associations and AutoExpand

Filtering with Expr.ExistsRelated(...)

5. Advanced feature examples

Transactions

timestamp optimistic concurrency

Sharding and TableArgs

Performance tuning and bulk providers

Window functions

Custom paging

6. Extensibility examples

Expression extension

Function validator

Custom SqlBuilder

If you want to move from simple to advanced examples, this is a practical sequence:

  1. First end-to-end example
  2. Query guide
  3. CRUD guide
  4. Associations
  5. Transactions
  6. Sharding and TableArgs
  7. Performance
  8. Expression extension