Repository navigation
Blueprint Database
github-actions[bot] edited this page Dec 6, 2026
·
1 revision
- BlueprintDatabase describes shared configuration, entity registration, and application lifetime.
-
SqlDatabase is the Microsoft SQL Server provider.
- Configuration and languages
- Connection string used by EntitiesTutorial
- Select the server, instance, or TCP port
- Choose authentication
- Database name and constructor behavior
- Complete example from EntitiesTutorial
- Register entity contracts
- Shared properties and services
- Data access through entities
- Execute SQL commands
- Application lifetime
- Concurrent access
- Permissions for initialization and caching
- Connection and initialization problems
- Related topics
- MySQL (Coming Soon)
- Schema Synchronization explains which database changes registration applies automatically.
- Query Executors covers the shared LINQ API and per-entity DB and RAM execution.
-
Transactions covers grouped writes, preparation, validation, rollback, and cancellation.
- Public API
- Reading the examples
- Create and execute transactions
- Queue writes
- Insert, update, and delete together
- Validate before commit
- Prepare operations inside the transaction
- Inspect operations and outcome
- Commit, rollback, and reuse
- Thread safety and isolation
- Cancellation
- RAM caching
- Related topics
-
RAM Caching explains table caching and synchronization of committed SQL changes.
- Enable caching
- AutoInclude data sources
- SQL Server requirements
- Refresh interval and consistency
- Running on multiple servers
- Concurrent updates
- Queries and SQL fallback
- Independent returned objects
- Counting, filtered lists, and single results
- Selecting individual fields
- Refresh failures and lifecycle
- Transactions
- Related topics
-
EShop - Checkout Tutorial shows how to create a user, add a product to a basket, and complete a transactional checkout.
- Define a contract
- The entities and their relationships
- Complete example in Main
-
How the steps work
- 1. Initialize languages, register entities, and activate Blueprint
- 2. Create the sample iPhones and keep the selected product's ID
- 3. Create and save WebsiteUser
- 4. Add one iPhone to the basket
- 5. Call checkout and wait for its result
- 6. Read the current user and basket inside the transaction
- 7. Prepare the order and preserve the purchase price
- 8. Queue the stock update and remove the purchased basket entry
- 9. Execute the transaction and commit the purchase
- 10. Read the result and release resources
- Expected result
- Failure and rollback
- Saving related changes
- IDs
- Concurrency
- Related topics