Skip to content

Update readme and add new test for constructors#165

Merged
PhenX merged 2 commits intomasterfrom
feature/update-readme
Mar 2, 2026
Merged

Update readme and add new test for constructors#165
PhenX merged 2 commits intomasterfrom
feature/update-readme

Conversation

@PhenX
Copy link
Collaborator

@PhenX PhenX commented Mar 2, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates documentation and test coverage around newly supported [Projectable] constructors, ensuring the generator’s constructor projection behavior is both described and snapshot-verified.

Changes:

  • Added a new generator test verifying a realistic [Projectable] constructor mapping from a full entity object (including a LINQ Count() on a navigation collection).
  • Added a verified snapshot for the generated projection expression for that constructor scenario.
  • Expanded README documentation to describe [Projectable] constructors (requirements, supported constructs, initializer chaining) and improved a few formatting/wording details.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/EntityFrameworkCore.Projectables.Generator.Tests/ConstructorTests.cs Adds a new [Fact] covering a full-object projectable constructor scenario.
tests/EntityFrameworkCore.Projectables.Generator.Tests/ConstructorTests.ProjectableConstructor_WithFullObject.verified.txt Adds the snapshot of the expected generated expression tree for the new test.
README.md Documents [Projectable] constructors (requirements, behavior, diagnostics) and includes minor formatting/text updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PhenX PhenX merged commit d4ec9f5 into master Mar 2, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants