Update README.md

This commit is contained in:
Koen
2021-05-31 05:22:11 +08:00
committed by GitHub
parent e1856a0bff
commit e3eda6be69
+2 -2
View File
@@ -38,7 +38,7 @@ public static class UserExtensions {
public static Order GetMostRecentOrderForUser(this User user, DateTime? cutoffDate) =>
user.Orders
.Where(x => cutoffDate == null || x.CreatedDate >= cutoffDate)
.OrderByDescending(x => X.CreatedDate)
.OrderByDescending(x => x.CreatedDate)
.FirstOrDefault();
}
@@ -107,7 +107,7 @@ Yes you can! Any projectable property/method can call into other properties and
#### Can I use projectable extensions methods on non-entity types?
Yes you can. It's perfectly acceptable to have the following code:
```csharp
[Projectable]s
[Projectable]
public static int Squared(this int i) => i * i;
```
Any call to squared given any int will perfertly translate to SQL.