From 3185d71b9ee4f0a3e9c85393c3a31efe0586aecb Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 7 Jul 2021 09:42:51 +0200 Subject: [PATCH] update readme with exluded from history attribute --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6c4a22e..21e146d 100644 --- a/README.md +++ b/README.md @@ -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.