Skip to content

Commit d9cd0a5

Browse files
authored
Update audit.md
1 parent fc2b90a commit d9cd0a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs2/pages/documentations/audit.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ public class EntitySimple : IEntitySimple
289289
}
290290

291291
```
292+
{% include component-try-it.html href='https://dotnetfiddle.net/QPcF2a' %}
292293

293294
**Example Enable DataAnnotations**
294295

@@ -331,6 +332,7 @@ audit.Configuration.Include<IAuditable>();
331332
ctx.SaveChanges(audit);
332333

333334
```
335+
{% include component-try-it.html href='https://dotnetfiddle.net/8TbEdO' %}
334336

335337
## Exclude & Include Property
336338

@@ -369,6 +371,7 @@ audit.Configuration.ExcludeProperty<IAuditable>(x =>
369371
ctx.SaveChanges(audit);
370372

371373
```
374+
{% include component-try-it.html href='https://dotnetfiddle.net/eHO1fP' %}
372375

373376
## Format Value
374377

@@ -399,6 +402,7 @@ audit.Configuration.Format<OrderItem>(x => x.Price,
399402
ctx.SaveChanges(audit);
400403

401404
```
405+
{% include component-try-it.html href='https://dotnetfiddle.net/Of9Dbz' %}
402406

403407
## Ignore Events
404408

@@ -435,6 +439,7 @@ audit.Configuration.IgnoreRelationshipDeleted = true;
435439
ctx.SaveChanges(audit);
436440

437441
```
442+
{% include component-try-it.html href='https://dotnetfiddle.net/Ya95EQ' %}
438443

439444
## Property Unchanged
440445

@@ -463,6 +468,7 @@ audit.Configuration.IgnorePropertyUnchanged = false;
463468
ctx.SaveChanges(audit);
464469

465470
```
471+
{% include component-try-it.html href='https://dotnetfiddle.net/tYE0YR' %}
466472

467473
## Soft Add & Soft Delete
468474

@@ -495,6 +501,7 @@ audit.Configuration.SoftDeleted<ISoftDelete>(x => x.IsDeleted);
495501
ctx.SaveChanges(audit);
496502

497503
```
504+
{% include component-try-it.html href='https://dotnetfiddle.net/OadxfN' %}
498505

499506
## Retrieve AuditEntries for specific item
500507

0 commit comments

Comments
 (0)