Conversation
Collaborator
chullybun
commented
May 20, 2026
- Fixed: The SQL Server outbox stored procedures, where applicable, have had redundant, dead code, removed.
- Fixed: Add name of entry assembly to the generated code file header comments to provide better visibility of generation source process.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR bumps the package to v3.0.2 and updates the code-generation outputs/templates to (1) include the initiating entry-assembly name in generated file headers, and (2) remove redundant/dead code from the SQL Server outbox stored procedures.
Changes:
- Added
CodeGenNameto the code-gen configuration and flowed it into C#/SQL/PG generated header comments for traceability. - Removed unused SQL Server outbox procedure logic (e.g., deleted OUTPUT-to-table variables in batch complete/cancel).
- Updated config metadata/descriptions and regenerated the JSON schema and changelog/version metadata.
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/DbEx.Test.Empty/Repositories/TestDbContext.g.cs | Generated header now includes code-gen entry assembly name. |
| tests/DbEx.Test.Empty/Persistence/Person.g.cs | Generated header now includes code-gen entry assembly name. |
| tests/DbEx.Test.Empty/Persistence/Contact.g.cs | Generated header now includes code-gen entry assembly name. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxLeaseRelease.g.sql | Generated header updated; doc text adjusted. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxLeaseAcquire.g.sql | Generated header updated; doc text adjusted. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxEnqueue.g.sql | Generated header updated. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxBatchComplete.g.sql | Removed redundant variables/OUTPUT capture; header updated. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxBatchClaim.g.sql | Generated header updated. |
| tests/DbEx.Test.Console/Schema/Stored Procedures/spOutboxBatchCancel.g.sql | Removed redundant variables/OUTPUT capture; header updated. |
| src/DbEx/Templates/EfModelBuilder_cs.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx/Templates/EfModel_cs.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx/CodeGen/Config/TableConfig.cs | Refined config metadata text and added regions; reordered properties. |
| src/DbEx/CodeGen/Config/ColumnConfig.cs | Refined config metadata text and added regions. |
| src/DbEx/CodeGen/Config/CodeGenConfig.cs | Introduced CodeGenName; reorganized config regions and updated descriptions. |
| src/DbEx.SqlServer/Templates/SpOutboxLeaseRelease_sql.hbs | Template header now includes {{Root.CodeGenName}}; doc text adjusted. |
| src/DbEx.SqlServer/Templates/SpOutboxLeaseAcquire_sql.hbs | Template header now includes {{Root.CodeGenName}}; doc text adjusted. |
| src/DbEx.SqlServer/Templates/SpOutboxEnqueue_sql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.SqlServer/Templates/SpOutboxBatchComplete_sql.hbs | Removed redundant variables/OUTPUT capture; header updated. |
| src/DbEx.SqlServer/Templates/SpOutboxBatchClaim_sql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.SqlServer/Templates/spOutboxBatchCancel_sql.hbs | Removed redundant variables/OUTPUT capture; header updated. |
| src/DbEx.Postgres/Templates/FnOutboxLeaseRelease_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.Postgres/Templates/FnOutboxLeaseAcquire_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.Postgres/Templates/FnOutboxEnqueue_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.Postgres/Templates/FnOutboxBatchComplete_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.Postgres/Templates/FnOutboxBatchClaim_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| src/DbEx.Postgres/Templates/FnOutboxBatchCancel_pgsql.hbs | Template header now includes {{Root.CodeGenName}}. |
| schema/dbex.json | Regenerated schema reflecting updated descriptions. |
| Common.targets | Version bumped from 3.0.1 to 3.0.2. |
| CHANGELOG.md | Added v3.0.2 changelog entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.