Browse Source

Update Specifications.md

pull/6075/head
Halil İbrahim Kalkan 6 years ago
parent
commit
fbb62969d9
  1. 4
      docs/en/Specifications.md

4
docs/en/Specifications.md

@ -228,9 +228,9 @@ public async Task<int> GetAdultPremiumCustomerCountAsync()
While the specification pattern is older than C# lambda expressions, it's generally compared to expressions. Some developers may think it's not needed anymore and we can directly pass expressions to a repository or to a domain service as shown below:
```
````csharp
var count = await _customerRepository.CountAsync(c => c.Balance > 100000 && c.Age => 18);
```
````
Since ABP's [Repository](Repositories.md) supports Expressions, this is a completely valid use. You don't have to define or use any specification in your application and you can go with expressions.

Loading…
Cancel
Save