Skip to content

Conversation

isaacgimenez
Copy link

Add attribute to exclude properties from history changes using [ExcludeFromHistory].
Changed context and demo to support new "private" field.
Added Tests to support new feature.

…eFromHistory].

Changed context and demo to support new "private" field
Added Tests.
Copy link
Member

@rigofunc rigofunc left a comment

Choose a reason for hiding this comment

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

LGTM

@isaacgimenez isaacgimenez reopened this Jul 5, 2021
@rigofunc rigofunc merged commit a613848 into arch:master Jul 7, 2021
@@ -142,7 +159,11 @@ internal static TAutoHistory AutoHistory<TAutoHistory>(this EntityEntry entry, F
{
foreach (var entry in addedEntries)
{
context.Add<TAutoHistory>(entry.AddedHistory(createHistoryFactory));
var autoHistory = entry.AutoHistory(createHistoryFactory);
Copy link

Choose a reason for hiding this comment

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

@isaacgimenez seems like this change (calling .AutoHistory instead of .AddedHistory) broke the EnsureAddedHistory functionality. Is this a mistake or is there a special reason for changing this?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @rufer7 seems like a total mistake, There was no intention on changing the behavior.

I will create a fix to revert it back on the next few days

Copy link
Author

Choose a reason for hiding this comment

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

Hi again @rufer7

PR was done but it has not been merged yet.

Hopefully someone will look into it soon.

Regards.

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