Use this file to discover all available pages before exploring further.
The Intent.EntityFrameworkCore module provides Entity Framework Core integration for Intent Architect applications. It generates DbContext classes, entity configurations, and all the infrastructure needed to work with relational databases using EF Core.
Exposes a LINQ-capable interface in the Application layer, decoupled from the concrete DbContext.Benefits:
Improved testability
Separation of concerns
Easier to mock in unit tests
Default: false
Enable Split Queries Globally
Sets the UseQuerySplittingBehavior option on the DbContext to SplitQuery.Useful when:
Queries include multiple collections
Avoiding cartesian explosion
Optimizing query performance
Default: false
Store Enums as Strings
Enables a convention to convert enums to/from strings in the database.Benefits:
More readable database values
Easier database querying
Better compatibility with other systems
Default: false
Enum Check Constraints
Adds SQL table check constraints to ensure data corresponds to the enum.Example:
ALTER TABLE Orders ADD CONSTRAINT CK_Orders_Status CHECK (Status IN (0, 1, 2, 3))
Default: false
Default Schema Name
Explicitly set the default schema name for the application (relational DBs only).Example: dbo, app, publicDefault: Empty (uses database default)
Maintain Column Ordering
SQL column ordering should reflect the model order.When enabled, properties appear in the database in the same order as in the domain model.Default: false
Primary Key Value Provider
Controls value generation in EntityTypeConfiguration classes.
Default - Let EF Core decide
None - Disable value generation
Default: Default
DBSet Naming Convention
Controls the naming convention of the DBSets created on the DBContext.