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

[Ignore] atbt discerning Insert/Update #722

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

7CMiguel
Copy link

@7CMiguel 7CMiguel commented Jul 23, 2024

#721 Related issue

Copy link
Contributor

@ahmad-moussawi ahmad-moussawi left a comment

Choose a reason for hiding this comment

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

I would suggest to not introduce a new attribute in this case,
we can use the same Ignore attribute and add optional parameters to select which operation should be ignored.

[Ignore(IgnoreOperation.OnInsert)]
// [Ignore(IgnoreOperation.OnUpdate)]
// [Ignore(IgnoreOperation.Always)] // the default option
public string Name { get; set; }

@ahmad-moussawi
Copy link
Contributor

Nice feature!, I suggested to reuse the existing Ignore attribute, and please add test to cover this change

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.

2 participants