Skip to content

Commit c451ea1

Browse files
Merge pull request #508 from waqasm78/patch-1
Update audit.md
2 parents 52fe000 + 1227f82 commit c451ea1

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs2/pages/documentations/audit.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ foreach(var entry in entries)
2929
}
3030

3131
```
32-
{% include component-try-it.html href='https://dotnetfiddle.net/AJVhpP' %}
32+
[Try it in EF6](https://dotnetfiddle.net/AJVhpP) | [Try it in EF Core](https://dotnetfiddle.net/dc7v3W)
3333

3434
## AutoSave Audit
3535

@@ -65,7 +65,7 @@ audit.CreatedBy = "ZZZ Projects"; // Optional
6565
ctx.SaveChanges(audit);
6666

6767
```
68-
{% include component-try-it.html href='https://dotnetfiddle.net/BfkqWm' %}
68+
[Try it in EF6](https://dotnetfiddle.net/BfkqWm) | [Try it in EF Core](https://dotnetfiddle.net/wi8men)
6969

7070
***By using a different context***
7171

@@ -96,7 +96,7 @@ audit.CreatedBy = "ZZZ Projects"; // Optional
9696
oracleContext.SaveChanges(audit);
9797

9898
```
99-
{% include component-try-it.html href='https://dotnetfiddle.net/wTwh77' %}
99+
[Try it in EF6](https://dotnetfiddle.net/wTwh77) | [Try it in EF Core](https://dotnetfiddle.net/RZeTZq)
100100

101101
***Custom AuditEntry & Database First Approach***
102102

@@ -150,7 +150,7 @@ public Static AuditEntryProperty Import(Z.EntityFramework.Plus.AuditEntryPropert
150150
}
151151

152152
```
153-
{% include component-try-it.html href='https://dotnetfiddle.net/9XjCSM' %}
153+
[Try it in EF6](https://dotnetfiddle.net/9XjCSM) | [Try it in EF Core](https://dotnetfiddle.net/JRiebw)
154154

155155
***Saving automatically by overriding SaveChanges & SaveChangesAsync***
156156

@@ -210,7 +210,7 @@ using(var ctx = new EntityContext())
210210
}
211211

212212
```
213-
{% include component-try-it.html href='https://dotnetfiddle.net/TFf8aj' %}
213+
[Try it in EF6](https://dotnetfiddle.net/TFf8aj) | [Try it in EF Core](https://dotnetfiddle.net/FtG10X)
214214

215215
***SQL Script (for Database First)***
216216

@@ -289,7 +289,7 @@ public class EntitySimple : IEntitySimple
289289
}
290290

291291
```
292-
{% include component-try-it.html href='https://dotnetfiddle.net/QPcF2a' %}
292+
[Try it in EF6](https://dotnetfiddle.net/QPcF2a) | [Try it in EF Core](https://dotnetfiddle.net/0ffKls)
293293

294294
**Example Enable DataAnnotations**
295295

@@ -332,7 +332,7 @@ audit.Configuration.Include<IAuditable>();
332332
ctx.SaveChanges(audit);
333333

334334
```
335-
{% include component-try-it.html href='https://dotnetfiddle.net/8TbEdO' %}
335+
[Try it in EF6](https://dotnetfiddle.net/8TbEdO) | [Try it in EF Core](https://dotnetfiddle.net/Ky4SpL)
336336

337337
## Exclude & Include Property
338338

@@ -371,7 +371,7 @@ audit.Configuration.ExcludeProperty<IAuditable>(x =>
371371
ctx.SaveChanges(audit);
372372

373373
```
374-
{% include component-try-it.html href='https://dotnetfiddle.net/eHO1fP' %}
374+
[Try it in EF6](https://dotnetfiddle.net/eHO1fP) | [Try it in EF Core](https://dotnetfiddle.net/E5fDhN)
375375

376376
## Format Value
377377

@@ -402,7 +402,7 @@ audit.Configuration.Format<OrderItem>(x => x.Price,
402402
ctx.SaveChanges(audit);
403403

404404
```
405-
{% include component-try-it.html href='https://dotnetfiddle.net/Of9Dbz' %}
405+
[Try it in EF6](https://dotnetfiddle.net/Of9Dbz) | [Try it in EF Core](https://dotnetfiddle.net/PZ4CJ3)
406406

407407
## Ignore Events
408408

@@ -439,7 +439,7 @@ audit.Configuration.IgnoreRelationshipDeleted = true;
439439
ctx.SaveChanges(audit);
440440

441441
```
442-
{% include component-try-it.html href='https://dotnetfiddle.net/Ya95EQ' %}
442+
[Try it in EF6](https://dotnetfiddle.net/Ya95EQ) | [Try it in EF Core](https://dotnetfiddle.net/w6D8z4)
443443

444444
## Property Unchanged
445445

@@ -468,7 +468,7 @@ audit.Configuration.IgnorePropertyUnchanged = false;
468468
ctx.SaveChanges(audit);
469469

470470
```
471-
{% include component-try-it.html href='https://dotnetfiddle.net/tYE0YR' %}
471+
[Try it in EF6](https://dotnetfiddle.net/tYE0YR) | [Try it in EF Core](https://dotnetfiddle.net/6oWfr2)
472472

473473
## Soft Add & Soft Delete
474474

@@ -501,7 +501,7 @@ audit.Configuration.SoftDeleted<ISoftDelete>(x => x.IsDeleted);
501501
ctx.SaveChanges(audit);
502502

503503
```
504-
{% include component-try-it.html href='https://dotnetfiddle.net/OadxfN' %}
504+
[Try it in EF6](https://dotnetfiddle.net/OadxfN) | [Try it in EF Core](https://dotnetfiddle.net/Etv7yC)
505505

506506
## Retrieve AuditEntries for specific item
507507

@@ -524,7 +524,7 @@ using (var ctx = new TestContext())
524524
}
525525

526526
```
527-
{% include component-try-it.html href='https://dotnetfiddle.net/ETFLlO' %}
527+
[Try it in EF6](https://dotnetfiddle.net/ETFLlO) | [Try it in EF Core](https://dotnetfiddle.net/6qiMrl)
528528

529529
### Audit, AuditEntry & AuditEntryProperty
530530

@@ -601,7 +601,7 @@ audit.Configuration.AuditEntryFactory = args =>
601601
ctx.SaveChanges(audit);
602602

603603
```
604-
{% include component-try-it.html href='https://dotnetfiddle.net/aVIC0C' %}
604+
[Try it in EF6](https://dotnetfiddle.net/aVIC0C) | [Try it in EF Core](https://dotnetfiddle.net/uYAB7B)
605605

606606
#### Custom Class
607607

@@ -630,7 +630,7 @@ audit.Configuration.AuditEntryPropertyFactory = args =>
630630
ctx.SaveChanges(audit);
631631

632632
```
633-
{% include component-try-it.html href='https://dotnetfiddle.net/xazeGj' %}
633+
[Try it in EF6](https://dotnetfiddle.net/xazeGj) | [Try it in EF Core](https://dotnetfiddle.net/ZV3lxd)
634634

635635
#### Custom DbSet with AutoSave
636636

@@ -653,7 +653,7 @@ audit.CreatedBy = "ZZZ Projects"; // Optional
653653
ctx.SaveChanges(audit);
654654

655655
```
656-
{% include component-try-it.html href='https://dotnetfiddle.net/lC7eWg' %}
656+
[Try it in EF6](https://dotnetfiddle.net/lC7eWg) | [Try it in EF Core](https://dotnetfiddle.net/k1A2OD)
657657

658658
## Audit + Entity Framework Extensions
659659

@@ -699,7 +699,7 @@ public class CurrentContext : DbContext
699699
}
700700

701701
```
702-
{% include component-try-it.html href='https://dotnetfiddle.net/AREtca' %}
702+
[Try it in EF6](https://dotnetfiddle.net/AREtca) | [Try it in EF Core](https://dotnetfiddle.net/nWXn84)
703703

704704
## Limitations
705705

0 commit comments

Comments
 (0)