This sample shows a tiny ORM with simple POCOs, a lightweight Include for eager loading, and full CancellationToken propagation.
cd Demo.App
dotnet runPress Ctrl+C to cancel while running; the app will stop gracefully.
- Simple POCOs:
Blog,Postwith[Table],[Key],[ForeignKey],[InverseProperty]. Includefor both collections and references (extra queries per entity).- Cancellation support across: opening connection, executing commands, include loading, seeding, and saving.
Replace Microsoft.Data.Sqlite with Microsoft.Data.SqlClient and change identity retrieval in SqlBuilder.Insert to SELECT SCOPE_IDENTITY();.