Skip to content

Commit 4ffbbe3

Browse files
authored
Update audit.md
1 parent f8f12ee commit 4ffbbe3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs2/pages/documentations/audit.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
Entity Framework saves entities in a database but doesn't let you easily track changes, by example, a history of all modifications and their author in an audit table.
5+
Entity Framework saves entities in a database but doesn't let you easily track changes, for example, a history of all modifications and their author in an audit table.
66

77
**EF+ Audit** easily tracks changes, exclude/include entity or property and auto save audit entries in the database.
88

@@ -377,7 +377,7 @@ ctx.SaveChanges(audit);
377377

378378
### Problem
379379

380-
You need to format a value with a different string representation by example adding a dollar sign to the money value.
380+
You need to format a value with a different string representation, for example, adding a dollar sign to the money value.
381381

382382
### Solution
383383

@@ -507,7 +507,7 @@ ctx.SaveChanges(audit);
507507

508508
### Problem
509509

510-
You want to retrieve all AuditEntry for a specific item
510+
You want to retrieve all AuditEntry for a specific item.
511511

512512
### Solution
513513

@@ -657,7 +657,7 @@ ctx.SaveChanges(audit);
657657

658658
## Audit + Entity Framework Extensions
659659

660-
If you are using Entity Framework Extensions, is still possible to use the EF+ Audit features.
660+
If you are using Entity Framework Extensions, it is still possible to use the EF+ Audit features.
661661

662662
However, it will only work with BulkSaveChanges.
663663

@@ -718,15 +718,15 @@ public class CurrentContext : DbContext
718718

719719
Why only my key is added when updating my entity?
720720

721-
This issue often happen for MVC user. They create a new entity through HttpPost values and force the state to "Modified", the context is not aware of the original value and use the current value instead. So every property has the original value == current value and our auditing only log the key since all other values are equals.
721+
This issue often happens for MVC user. They create a new entity through HttpPost values and force the state to "Modified", the context is not aware of the original value and use the current value instead. So, every property has the original value == current value and our auditing only log the key since all other values are equals.
722722

723-
We recommend to set the **IgnorePropertyUnchanged **to false to log every property.
723+
We recommend setting the **IgnorePropertyUnchanged **to false to log every property.
724724

725725
Here is an example of this issue: [Issues #8](https://github.com/zzzprojects/EntityFramework-Plus/issues/8)
726726

727727
## Conclusion
728728

729-
**Auditing** in Entity Framework could not be simpler, there are always some entities in an application where an audit table can be crucial to keep track of what's happening and you now have access to an easy to use library for these situations.
729+
**Auditing** in Entity Framework could not be simpler, there are always some entities in an application where an audit table can be crucial to keep track of what's happening, and you now have access to an easy to use library for these situations.
730730

731731
Need help getting started? [[email protected]](mailto:[email protected])
732732

0 commit comments

Comments
 (0)