|
| 1 | +lambdaQuery: |
| 2 | + .Call System.Linq.Queryable.ThenBy( |
| 3 | + .Call System.Linq.Queryable.OrderBy( |
| 4 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 5 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 6 | + .Constant<Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]>(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]), |
| 7 | + '(.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>)), |
| 8 | + '(.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>)) |
| 9 | + , |
| 10 | + '(.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>)), |
| 11 | + '(.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>)) |
| 12 | + |
| 13 | +.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>(QueryBug.RootEntity $r) { |
| 14 | + $r.ParentEntity |
| 15 | +} |
| 16 | + |
| 17 | +.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>(QueryBug.RootEntity $r) |
| 18 | +{ |
| 19 | + $r.Children |
| 20 | +} |
| 21 | + |
| 22 | +.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $r) { |
| 23 | + .If ($r.ParentEntity == null) { |
| 24 | + "" |
| 25 | + } .Else { |
| 26 | + ($r.ParentEntity).Name |
| 27 | + } |
| 28 | +} |
| 29 | + |
| 30 | +.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $r) { |
| 31 | + $r.Name |
| 32 | +} |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +dynamicQuery: |
| 37 | + .Call System.Linq.Queryable.ThenBy( |
| 38 | + .Call System.Linq.Queryable.OrderBy( |
| 39 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 40 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 41 | + .Constant<Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]>(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]), |
| 42 | + '(.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>)), |
| 43 | + '(.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>)) |
| 44 | + , |
| 45 | + '(.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>)), |
| 46 | + '(.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>)) |
| 47 | + |
| 48 | +.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>(QueryBug.RootEntity $r) { |
| 49 | + $r.ParentEntity |
| 50 | +} |
| 51 | + |
| 52 | +.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>(QueryBug.RootEntity $r) |
| 53 | +{ |
| 54 | + $r.Children |
| 55 | +} |
| 56 | + |
| 57 | +.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $var1) { |
| 58 | + .If ((System.Object)$var1.ParentEntity == null) { |
| 59 | + "" |
| 60 | + } .Else { |
| 61 | + ($var1.ParentEntity).Name |
| 62 | + } |
| 63 | +} |
| 64 | + |
| 65 | +.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $var1) { |
| 66 | + $var1.Name |
| 67 | +} |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +castedLambdaQuery: |
| 72 | + .Call System.Linq.Queryable.ThenBy( |
| 73 | + .Call System.Linq.Queryable.OrderBy( |
| 74 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 75 | + .Call Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.Include( |
| 76 | + .Constant<Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]>(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[QueryBug.RootEntity]), |
| 77 | + '(.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>)), |
| 78 | + '(.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>)) |
| 79 | + , |
| 80 | + '(.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>)), |
| 81 | + '(.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>)) |
| 82 | + |
| 83 | +.Lambda #Lambda1<System.Func`2[QueryBug.RootEntity,QueryBug.ParentEntity]>(QueryBug.RootEntity $r) { |
| 84 | + $r.ParentEntity |
| 85 | +} |
| 86 | + |
| 87 | +.Lambda #Lambda2<System.Func`2[QueryBug.RootEntity,System.Collections.Generic.ICollection`1[QueryBug.ChildEntity]]>(QueryBug.RootEntity $r) |
| 88 | +{ |
| 89 | + $r.Children |
| 90 | +} |
| 91 | + |
| 92 | +.Lambda #Lambda3<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $r) { |
| 93 | + .If ((System.Object)$r.ParentEntity == null) { |
| 94 | + "" |
| 95 | + } .Else { |
| 96 | + ($r.ParentEntity).Name |
| 97 | + } |
| 98 | +} |
| 99 | + |
| 100 | +.Lambda #Lambda4<System.Func`2[QueryBug.RootEntity,System.String]>(QueryBug.RootEntity $r) { |
| 101 | + $r.Name |
| 102 | +} |
0 commit comments