Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never map projectable properties #113

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Never map projectable properties #113

merged 2 commits into from
Aug 18, 2024

Conversation

koenbeuk
Copy link
Owner

@koenbeuk koenbeuk commented Aug 18, 2024

Fixes #109

PR Classification

New feature to enhance Entity Framework Core with a custom convention.

PR Summary

Introduces a convention to automatically ignore properties marked with ProjectableAttribute in Entity Framework Core.

  • ProjectablePropertiesNotMappedConvention.cs: Added a class to ignore properties marked with ProjectableAttribute.
  • ProjectablePropertiesNotMappedConventionPlugin.cs: Added a plugin to include the new convention in the convention set.
  • ProjectionOptionsExtension.cs: Updated to register the new convention plugin.
  • EnumerableProjectableTests.cs: Added tests to verify the new convention.

@koenbeuk koenbeuk merged commit d8339c7 into master Aug 18, 2024
4 checks passed
@koenbeuk koenbeuk deleted the issue/109 branch August 18, 2024 23:27
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.

Auto-configure projectable properties as [NotMapped]
1 participant