|
2 | 2 |
|
3 | 3 | ## Introduction |
4 | 4 |
|
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. |
6 | 6 |
|
7 | 7 | **EF+ Audit** easily tracks changes, exclude/include entity or property and auto save audit entries in the database. |
8 | 8 |
|
@@ -377,7 +377,7 @@ ctx.SaveChanges(audit); |
377 | 377 |
|
378 | 378 | ### Problem |
379 | 379 |
|
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. |
381 | 381 |
|
382 | 382 | ### Solution |
383 | 383 |
|
@@ -507,7 +507,7 @@ ctx.SaveChanges(audit); |
507 | 507 |
|
508 | 508 | ### Problem |
509 | 509 |
|
510 | | -You want to retrieve all AuditEntry for a specific item |
| 510 | +You want to retrieve all AuditEntry for a specific item. |
511 | 511 |
|
512 | 512 | ### Solution |
513 | 513 |
|
@@ -657,7 +657,7 @@ ctx.SaveChanges(audit); |
657 | 657 |
|
658 | 658 | ## Audit + Entity Framework Extensions |
659 | 659 |
|
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. |
661 | 661 |
|
662 | 662 | However, it will only work with BulkSaveChanges. |
663 | 663 |
|
@@ -718,15 +718,15 @@ public class CurrentContext : DbContext |
718 | 718 |
|
719 | 719 | Why only my key is added when updating my entity? |
720 | 720 |
|
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. |
722 | 722 |
|
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. |
724 | 724 |
|
725 | 725 | Here is an example of this issue: [Issues #8](https://github.com/zzzprojects/EntityFramework-Plus/issues/8) |
726 | 726 |
|
727 | 727 | ## Conclusion |
728 | 728 |
|
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. |
730 | 730 |
|
731 | 731 | Need help getting started? [[email protected]](mailto:[email protected]) |
732 | 732 |
|
|
0 commit comments