Skip to content

Commit e565f62

Browse files
Merge pull request #398 from stgelaisalex/master
Marie-Lou changes
2 parents d7f250e + 426d762 commit e565f62

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
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

docs2/pages/documentations/query-cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Query Deferred supports all Queryable extension methods and overloads.
9494

9595
Tagging the cache lets you expire later on all cached entries with a specific tag by calling the **ExpireTag** method.
9696

97-
By example, the daily countries & states importation has been completed and you need to refresh from the database all queries related to the country table. You can now simply expire the tag **countries** to remove all related cached entries.
97+
For example, the daily countries & states importation has been completed and you need to refresh from the database all queries related to the country table. You can now simply expire the tag **countries** to remove all related cached entries.
9898

9999
{% include template-example.html %}
100100
```csharp

docs2/pages/documentations/query-db-set-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To make both features live together, method in Query DbSetFilter has been rename
2525

2626
Global filter can be used by any context.
2727

28-
Global filter is normally preferred in most scenario over instance filter since the filter code is centralized in one method over being spread in multiple methods.
28+
Global filter is normally preferred in most scenarios over instance filter since the filter code is centralized in one method over being spread in multiple methods.
2929

3030
{% include template-example.html %}
3131
```csharp

docs2/pages/documentations/query-filter.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ var list = ctx.Categories.ToList();
270270

271271
### Security Access
272272

273-
Viewing sensible data requires often some permissions. By example, not everyone can see all posts in a forum.
273+
Viewing sensible data often requires some permissions. For example, not everyone can see all posts in a forum.
274274

275275
*In this example, some posts are only available by role level.*
276276

@@ -308,7 +308,7 @@ var list = ctx.Categories.ToList()
308308

309309
### Include Filtering
310310

311-
Including related entities can be useful. By example, every time you load a post, you want to include all active comments related.
311+
Including related entities can be useful. For example, every time you load a post, you want to include all active comments related.
312312

313313
**Require:** EF+ Query Include
314314

@@ -361,7 +361,7 @@ using (var ctx = new EntityContext())
361361

362362
#### Context Filter
363363

364-
Since the QueryCacheManager is global, our library have some limitation with Filter by context (Global Filter doesn't have this issue since it apply the same logic to all query.
364+
Since the QueryCacheManager is global, our library have some limitations with Filter by context (Global Filter doesn't have this issue since it apply the same logic to all query.)
365365

366366
- LazyLoading only work with GlobalFilter
367367
- context.Set only work with GlobalFilter (You can use the method SetFiltered instead)
@@ -383,7 +383,7 @@ For this kind of scenario, we recommend using instead: [EntityFramework.DynamicF
383383
384384
#### Entity Framework Core - Limitations
385385

386-
A **ForceCast** option has been added to support temporary inheritance, but some LINQ method will not be longer work in combination with ForceCast
386+
A **ForceCast** option has been added to support temporary inheritance, but some LINQ method will no longer be working in combination with ForceCast.
387387

388388
{% include template-example.html %}
389389
```csharp
@@ -392,7 +392,7 @@ QueryFilterManager.ForceCast = true;
392392

393393
```
394394

395-
Here is a list of known method that doesn't longer work with query filtered with the ForceCast options enabled:
395+
Here is a list of known method that no longer work with query filtered with the ForceCast options enabled:
396396

397397
- Aggregate
398398
- Max

docs2/pages/documentations/query-future.md

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

33
## Introduction
44

5-
Every time an immediate method like **ToList** or **FirstOrDefault** is invoked on a query, a database round trip is made to retrieve data. While the most application doesn't have performance issues with making multiple round trips, batching multiple queries into one can be critical for some heavy traffic applications for scalability. Major ORM like NHibernate had this feature for a long time but, unfortunately for Entity Framework users, batching queries is only available through third party libraries.
5+
Every time an immediate method like **ToList** or **FirstOrDefault** is invoked on a query, a database round trip is made to retrieve data. While most applications don't have performance issues with making multiple round trips, batching multiple queries into one can be critical for some heavy traffic applications for scalability. Major ORM like NHibernate had this feature for a long time but, unfortunately for Entity Framework users, batching queries is only available through third party libraries.
66

77
**EF+ Query Future** opens up all batching future queries features for Entity Framework users.
88

9-
To batch multiples queries, simply append **Future** or **FutureValue** method to the query. All future queries will be stored in a pending list, and when the first future query requires a database round trip, all queries will be resolved in the same SQL command.
9+
To batch multiple queries, simply append **Future** or **FutureValue** method to the query. All future queries will be stored in a pending list, and when the first future query requires a database round trip, all queries will be resolved in the same SQL command.
1010

1111
{% include template-example.html %}
1212
```csharp
@@ -176,7 +176,7 @@ As we saw, EF+ Query Future follows a good architecture principle:
176176

177177
- **Flexible:** Future, FutureValue and FutureValue deferred make it possible to use it in any kind of scenario.
178178
- **Maintainable:** The easy to use API, documentation and available source code allows new developers to quickly understand this feature.
179-
- **Scalable:** Query Future gets only better as the number of user/traffic grows by drastically reducing database round trips.
179+
- **Scalable:** Query Future only gets better as the number of user/traffic grows by drastically reducing database round trips.
180180

181181
Need help getting started? [[email protected]](mailto:[email protected])
182182

docs2/pages/documentations/query-include-filter.md

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

33
## Introduction
44

5-
With Entity Framework, "Include" method is often used to load related entities / child collections. However, the method doesn't let you use LINQ queryable methods like **Where** to filter entities to include which is a major drawback. Excluding soft deleted records or limiting the result is a frequent real life scenario which the "Include" method doesn't support.
5+
With Entity Framework, "Include" method is often used to load related entities / child collections. However, the method doesn't let you use LINQ queryable methods like **Where** to filter entities to include which is a major drawback. Excluding soft deleted records or limiting the result is a frequent real-life scenario which the "Include" method doesn't support.
66

77
**EF+ Query IncludeFilter** lets you filter and perform LINQ queryable methods on related entities.
88

@@ -180,8 +180,8 @@ ctx.Posts.IncludeFilter(q => q.Comments.Take(1)).ToList();
180180

181181
## Conclusion
182182

183-
Filtering included related entities is one of the most frequently asked questions in forums. **EF+ Query IncludeFilter** now make it possible without any learning curve required for a junior developer to understand what the method does.
183+
Filtering included related entities is one of the most frequently asked questions in forums. **EF+ Query IncludeFilter** now makes it possible without any learning curve required for a junior developer to understand what the method does.
184184

185185
Need help getting started? [info@zzzprojects.com](mailto:info@zzzprojects.com)
186186

187-
We welcome all comments, ideas and suggestions to improve our library.
187+
We welcome all comments, ideas and suggestions to improve our library.

docs2/pages/getting-started/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ Filter query with predicate at global, instance or query level.
7777

7878
Query Future allow to reduce database roundtrip by batching multiple queries in the same sql command.
7979

80-
All future query are stored in a pending list. When the first future query require a database roundtrip, all query are resolved in the same sql command instead of making a database roundtrip for every sql command.
80+
All future queries are stored in a pending list. When the first future query requires a database roundtrip, all queries are resolved in the same sql command instead of making a database roundtrip for every sql command.
8181

8282
### Query IncludeFilter
8383

8484
Entity Framework already support eager loading however the major drawback is you cannot control what will be included. There is no way to load only active item or load only the first 10 comments.
8585

8686
### Query IncludeOptimized
8787

88-
Improve SQL generate by Include and filter child collections at the same times!
88+
Improves SQL generated by Include and filter child collections at the same time!
8989

9090
[Learn more](/tutorial-query)
9191

0 commit comments

Comments
 (0)