Skip to content

Commit 76b08a2

Browse files
authored
Update linq-dynamic.md
1 parent 11a634c commit 76b08a2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docs/pages/features/linq-dynamic.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ All LINQ predicate methods are supported.
1313
var list = context.Customers.Where(x => "x.IsActive").ToList();
1414
var list2 = context.Customers.Where(x => "x.IsActive == IsActive", new { IsActive = false }).ToList();
1515
```
16-
[Try it](https://dotnetfiddle.net/GTttpq)
16+
Try it: [NET Framework](https://dotnetfiddle.net/GTttpq) | [NET Core](https://dotnetfiddle.net/Exa0zS)
1717

1818
###### Deferred Methods
1919
| Name | Description | Example |
2020
| :--- | :---------- | :------ |
21-
| `Where` | Filters a sequence of values based on a predicate using a dynamic expression. | [Try it](https://dotnetfiddle.net/QhVfRW) |
21+
| `Where` | Filters a sequence of values based on a predicate using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/QhVfRW) / [NET Core](https://dotnetfiddle.net/z8t5wV) |
2222

2323
###### Immediate Methods
2424
| Name | Description | Example |
2525
| :--- | :---------- | :------ |
26-
| `All` | Determines whether all elements of a sequence satisfy a condition using a dynamic expression. | [Try it](https://dotnetfiddle.net/YCT73M) |
27-
| `Any` | Determines whether any element of a sequence exists or satisfies a condition using a dynamic expression. | [Try it](https://dotnetfiddle.net/vEbwLr) |
28-
| `Count` | Returns the number of elements in a sequence using a dynamic expression. | [Try it](https://dotnetfiddle.net/v8rqKV) |
29-
| `First` | Returns the first element of a sequence using a dynamic expression. | [Try it](https://dotnetfiddle.net/CfxUKL) |
30-
| `FirstOrDefault` | Returns the first element of a sequence, or a default value if no element is found using a dynamic expression. | [Try it](https://dotnetfiddle.net/UX3Ymb) |
31-
| `LongCount` | Returns an Int64 that represents the number of elements in a sequence using a dynamic expression. | [Try it](https://dotnetfiddle.net/4xrM1d) |
32-
| `Single` | Returns a single, specific element of a sequence using a dynamic expression. | [Try it](https://dotnetfiddle.net/onW4hW) |
33-
| `SingleOrDefault` | Returns a single, specific element of a sequence, or a default value if that element is not found using a dynamic expression. | [Try it](https://dotnetfiddle.net/nU97uw) |
26+
| `All` | Determines whether all elements of a sequence satisfy a condition using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/YCT73M) / [NET Core](https://dotnetfiddle.net/XrG83V) |
27+
| `Any` | Determines whether any element of a sequence exists or satisfies a condition using a dynamic expression. |[NET Framework](https://dotnetfiddle.net/vEbwLr) / [NET Core](https://dotnetfiddle.net/Gh9OSM) |
28+
| `Count` | Returns the number of elements in a sequence using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/v8rqKV) / [NET Core](https://dotnetfiddle.net/ox7EFW) |
29+
| `First` | Returns the first element of a sequence using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/CfxUKL) / [NET Core](https://dotnetfiddle.net/gW1CqX) |
30+
| `FirstOrDefault` | Returns the first element of a sequence, or a default value if no element is found using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/UX3Ymb) / [NET Core](https://dotnetfiddle.net/3ZlZuq) |
31+
| `LongCount` | Returns an Int64 that represents the number of elements in a sequence using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/4xrM1d) / [NET Core](https://dotnetfiddle.net/fc6TLH) |
32+
| `Single` | Returns a single, specific element of a sequence using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/onW4hW) / [NET Core](https://dotnetfiddle.net/SHPNY8) |
33+
| `SingleOrDefault` | Returns a single, specific element of a sequence, or a default value if that element is not found using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/nU97uw) / [NET Core](https://dotnetfiddle.net/S07cJB) |
3434

3535
## Order & Select
3636

@@ -39,17 +39,17 @@ All LINQ selector and order are supported. Most of them require the "Dynamic" su
3939
```csharp
4040
var list = context.Customers.OrderByDescendingDynamic(x => "x.Name").ToList();
4141
```
42-
[Try it](https://dotnetfiddle.net/Fwjgin)
42+
Try it: [NET Framework](https://dotnetfiddle.net/Fwjgin) | [NET Core](https://dotnetfiddle.net/by9NRe)
4343

4444
###### Deferred Methods
4545
| Name | Description | Example |
4646
| :--- | :---------- | :------ |
47-
| `OrderByDescendingDynamic` | Sorts the elements of a sequence in descending order using a dynamic expression. | [Try it](https://dotnetfiddle.net/doNrVQ) |
48-
| `OrderByDynamic` | Sorts the elements of a sequence in ascending order using a dynamic expression. | [Try it](https://dotnetfiddle.net/rzKycR) |
49-
| `SelectMany` | Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence using a dynamic expression. | [Try it](https://dotnetfiddle.net/KLF5e7) |
50-
| `SelectDynamic` | Projects each element of a sequence into a new form using a dynamic expression. | [Try it](https://dotnetfiddle.net/YE83om) |
51-
| `ThenByDescendingDynamic` | Performs a subsequent ordering of the elements in a sequence in descending order using a dynamic expression. | [Try it](https://dotnetfiddle.net/8FxroD) |
52-
| `ThenByDynamic` | Performs a subsequent ordering of the elements in a sequence in ascending order using a dynamic expression. | [Try it](https://dotnetfiddle.net/pVCcRf) |
47+
| `OrderByDescendingDynamic` | Sorts the elements of a sequence in descending order using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/doNrVQ) / [NET Core](https://dotnetfiddle.net/zt3MEa) |
48+
| `OrderByDynamic` | Sorts the elements of a sequence in ascending order using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/rzKycR) / [NET Core](https://dotnetfiddle.net/9GvILu) |
49+
| `SelectMany` | Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/KLF5e7) / [NET Core](https://dotnetfiddle.net/toMh6j) |
50+
| `SelectDynamic` | Projects each element of a sequence into a new form using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/YE83om) / [NET Core](https://dotnetfiddle.net/X9uPDb) |
51+
| `ThenByDescendingDynamic` | Performs a subsequent ordering of the elements in a sequence in descending order using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/8FxroD) / [NET Core](https://dotnetfiddle.net/Kd2WQY) |
52+
| `ThenByDynamic` | Performs a subsequent ordering of the elements in a sequence in ascending order using a dynamic expression. | [NET Framework](https://dotnetfiddle.net/pVCcRf) / [NET Core](https://dotnetfiddle.net/9pyiEV) |
5353

5454
## Execute
5555

@@ -59,10 +59,10 @@ The Execute method is the LINQ Dynamic ultimate methods which let you evaluate a
5959
var list = context.Customers.Execute<IEnumerable<Customer>>("Where(x => x.IsActive == true)").ToList();
6060
var list2 = context.Customers.Execute<IEnumerable<Customer>>("Where(x => x.IsActive == IsActive)", new { IsActive = false }).ToList();
6161
```
62-
[Try it](https://dotnetfiddle.net/7S3JS0)
62+
Try it: [NET Framework](https://dotnetfiddle.net/7S3JS0) | [NET Core](https://dotnetfiddle.net/u2HVih)
6363

6464
###### Methods
6565
| Name | Description | Example |
6666
| :--- | :---------- | :------ |
67-
| `Execute` | Execute LINQ dynamic using an expression. | [Try it](https://dotnetfiddle.net/z1jIkv) |
68-
| `Execute<TResult>` | Execute LINQ dynamic using an expression. | [Try it](https://dotnetfiddle.net/jgOyFi) |
67+
| `Execute` | Execute LINQ dynamic using an expression. | [NET Framework](https://dotnetfiddle.net/z1jIkv) / [NET Core](https://dotnetfiddle.net/FU2FsS) |
68+
| `Execute<TResult>` | Execute LINQ dynamic using an expression. | [NET Framework](https://dotnetfiddle.net/jgOyFi) / [NET Core](https://dotnetfiddle.net/YgaB4Y) |

0 commit comments

Comments
 (0)