Skip to content

Commit

Permalink
Merge pull request #62 from isaacgimenez/feature/exclude-documentation
Browse files Browse the repository at this point in the history
update readme with exluded from history attribute
  • Loading branch information
rigofunc authored Jul 7, 2021
2 parents a613848 + 3185d71 commit 12a37cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ db.EnsureAutoHistory(() => new CustomAutoHistory()
});
```

# Excluding properties from AutoHistory
You can now excluded properties from being saved into the AutoHistory tables by adding a custom attribute[ExcludeFromHistoryAttribute] attribute to your model properties.


```csharp
public class Blog
{
[ExcludeFromHistory]
public string PrivateURL { get; set; }
}
```

# Integrate AutoHistory into other Package

[Microsoft.EntityFrameworkCore.UnitOfWork](https://github.com/lovedotnet/UnitOfWork) had integrated this package.
Expand Down

0 comments on commit 12a37cf

Please sign in to comment.