Skip to content

Never map projectable properties#113

Merged
koenbeuk merged 2 commits intomasterfrom
issue/109
Aug 18, 2024
Merged

Never map projectable properties#113
koenbeuk merged 2 commits intomasterfrom
issue/109

Conversation

@koenbeuk
Copy link
Copy Markdown
Collaborator

@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.

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