- | Int32 |
+ System.Int32 |
The number of elements in the input sequence.
|
@@ -1093,10 +1089,10 @@
[PublicAPI]
-public static int Count([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string predicate, params object[] args)
+public static int Count(this IQueryable source, ParsingConfig config, string predicate, params object[] args)
Parameters
@@ -1119,9 +1115,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable that contains the elements to be counted.
+ | The System.Linq.IQueryable that contains the elements to be counted.
|
@@ -1131,13 +1127,13 @@ Parameters
- | String |
+ System.String |
predicate |
A function to test each element for a condition.
|
- | Object[] |
+ System.Object[] |
args |
An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -1154,7 +1150,7 @@ Returns
- | Int32 |
+ System.Int32 |
The number of elements in the specified sequence that satisfies a condition.
|
@@ -1168,10 +1164,10 @@
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
Count(IQueryable, LambdaExpression)
@@ -1180,7 +1176,7 @@
Declaration
-
public static int Count([NotNull] this IQueryable source, [NotNull] LambdaExpression lambda)
+
public static int Count(this IQueryable source, LambdaExpression lambda)
Parameters
@@ -1193,13 +1189,13 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable that contains the elements to be counted.
+ | The System.Linq.IQueryable that contains the elements to be counted.
|
- | LambdaExpression |
+ System.Linq.Expressions.LambdaExpression |
lambda |
A cached Lambda Expression.
|
@@ -1216,7 +1212,7 @@ Returns
- | Int32 |
+ System.Int32 |
The number of elements in the specified sequence that satisfies a condition.
|
@@ -1224,18 +1220,19 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
Count(IQueryable, String, Object[])
-
+ Returns the number of elements in a sequence.
+
Declaration
-
public static int Count([NotNull] this IQueryable source, [NotNull] string predicate, params object[] args)
+
public static int Count(this IQueryable source, string predicate, params object[] args)
Parameters
@@ -1248,17 +1245,17 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
|
- | String |
+ System.String |
predicate |
|
- | Object[] |
+ System.Object[] |
args |
|
@@ -1274,17 +1271,18 @@ Returns
- | Int32 |
- |
+ System.Int32 |
+ The number of elements in the specified sequence that satisfies a condition.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
DefaultIfEmpty(IQueryable)
@@ -1293,7 +1291,7 @@
Declaration
-
public static IQueryable DefaultIfEmpty([NotNull] this IQueryable source)
+
public static IQueryable DefaultIfEmpty(this IQueryable source)
Parameters
@@ -1306,9 +1304,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return a default value for if empty.
+ | The System.Linq.IQueryable to return a default value for if empty.
|
@@ -1323,8 +1321,8 @@ Returns
- | IQueryable |
- An IQueryable that contains default if source is empty; otherwise, source.
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable that contains default if source is empty; otherwise, source.
|
@@ -1334,10 +1332,10 @@
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
DefaultIfEmpty(IQueryable, Object)
@@ -1346,7 +1344,7 @@
Declaration
-
public static IQueryable DefaultIfEmpty([NotNull] this IQueryable source, [CanBeNull] object defaultValue)
+
public static IQueryable DefaultIfEmpty(this IQueryable source, object defaultValue)
Parameters
@@ -1359,13 +1357,13 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return a default value for if empty.
+ | The System.Linq.IQueryable to return a default value for if empty.
|
- | Object |
+ System.Object |
defaultValue |
The value to return if the sequence is empty.
|
@@ -1382,8 +1380,8 @@ Returns
- | IQueryable |
- An IQueryable that contains defaultValue if source is empty; otherwise, source.
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable that contains defaultValue if source is empty; otherwise, source.
|
@@ -1393,10 +1391,10 @@
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
Distinct(IQueryable)
@@ -1405,7 +1403,7 @@
Declaration
-
public static IQueryable Distinct([NotNull] this IQueryable source)
+
public static IQueryable Distinct(this IQueryable source)
Parameters
@@ -1418,7 +1416,7 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
The sequence to remove duplicate elements from.
|
@@ -1435,8 +1433,8 @@ Returns
- | IQueryable |
- An IQueryable that contains distinct elements from the source sequence.
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable that contains distinct elements from the source sequence.
|
@@ -1448,10 +1446,10 @@
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
First(IQueryable)
@@ -1460,7 +1458,7 @@
Declaration
-
public static object First([NotNull] this IQueryable source)
+
public static object First(this IQueryable source)
Parameters
@@ -1473,9 +1471,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
@@ -1490,7 +1488,7 @@ Returns
- | Object |
+ System.Object |
The first element in source.
|
@@ -1498,10 +1496,10 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
First(IQueryable, ParsingConfig, String, Object[])
@@ -1511,7 +1509,7 @@ Declaration
[PublicAPI]
-public static object First([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string predicate, params object[] args)
+public static object First(this IQueryable source, ParsingConfig config, string predicate, params object[] args)
Parameters
@@ -1524,9 +1522,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
@@ -1536,13 +1534,13 @@ Parameters
- | String |
+ System.String |
predicate |
A function to test each element for a condition.
|
- | Object[] |
+ System.Object[] |
args |
An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -1559,7 +1557,7 @@ Returns
- | Object |
+ System.Object |
The first element in source that passes the test in predicate.
|
@@ -1567,10 +1565,10 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
First(IQueryable, LambdaExpression)
@@ -1579,7 +1577,7 @@
Declaration
-
public static object First([NotNull] this IQueryable source, [NotNull] LambdaExpression lambda)
+
public static object First(this IQueryable source, LambdaExpression lambda)
Parameters
@@ -1592,13 +1590,13 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
- | LambdaExpression |
+ System.Linq.Expressions.LambdaExpression |
lambda |
A cached Lambda Expression.
|
@@ -1615,7 +1613,7 @@ Returns
- | Object |
+ System.Object |
The first element in source that passes the test in predicate.
|
@@ -1623,18 +1621,19 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
First(IQueryable, String, Object[])
-
+ Returns the first element of a sequence that satisfies a specified condition.
+
Declaration
-
public static object First([NotNull] this IQueryable source, [NotNull] string predicate, params object[] args)
+
public static object First(this IQueryable source, string predicate, params object[] args)
Parameters
@@ -1647,17 +1646,17 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
|
- | String |
+ System.String |
predicate |
|
- | Object[] |
+ System.Object[] |
args |
|
@@ -1673,17 +1672,18 @@ Returns
- | Object |
- |
+ System.Object |
+ The first element in source that passes the test in predicate.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
FirstOrDefault(IQueryable)
@@ -1692,7 +1692,7 @@
Declaration
-
public static object FirstOrDefault([NotNull] this IQueryable source)
+
public static object FirstOrDefault(this IQueryable source)
Parameters
@@ -1705,9 +1705,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
@@ -1722,7 +1722,7 @@ Returns
- | Object |
+ System.Object |
default if source is empty; otherwise, the first element in source.
|
@@ -1730,10 +1730,10 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
FirstOrDefault(IQueryable, ParsingConfig, String, Object[])
@@ -1743,7 +1743,7 @@ Declaration
[PublicAPI]
-public static object FirstOrDefault([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string predicate, params object[] args)
+public static object FirstOrDefault(this IQueryable source, ParsingConfig config, string predicate, params object[] args)
Parameters
@@ -1756,9 +1756,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
@@ -1768,13 +1768,13 @@ Parameters
- | String |
+ System.String |
predicate |
A function to test each element for a condition.
|
- | Object[] |
+ System.Object[] |
args |
An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -1791,7 +1791,7 @@ Returns
- | Object |
+ System.Object |
default if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
|
@@ -1799,10 +1799,10 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
FirstOrDefault(IQueryable, LambdaExpression)
@@ -1811,7 +1811,7 @@
Declaration
-
public static object FirstOrDefault([NotNull] this IQueryable source, [NotNull] LambdaExpression lambda)
+
public static object FirstOrDefault(this IQueryable source, LambdaExpression lambda)
Parameters
@@ -1824,13 +1824,13 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- The IQueryable to return the first element of.
+ | The System.Linq.IQueryable to return the first element of.
|
- | LambdaExpression |
+ System.Linq.Expressions.LambdaExpression |
lambda |
A cached Lambda Expression.
|
@@ -1847,7 +1847,7 @@ Returns
- | Object |
+ System.Object |
default if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
|
@@ -1855,18 +1855,19 @@ Returns
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
FirstOrDefault(IQueryable, String, Object[])
-
+ Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.
+
Declaration
-
public static object FirstOrDefault([NotNull] this IQueryable source, [NotNull] string predicate, params object[] args)
+
public static object FirstOrDefault(this IQueryable source, string predicate, params object[] args)
Parameters
@@ -1879,17 +1880,17 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
|
- | String |
+ System.String |
predicate |
|
- | Object[] |
+ System.Object[] |
args |
|
@@ -1905,28 +1906,28 @@ Returns
- | Object |
- |
+ System.Object |
+ default if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, ParsingConfig, String, Object[])
+ GroupBy(IQueryable, ParsingConfig, String, IEqualityComparer, Object[])
Groups the elements of a sequence according to a specified key string function
and creates a result value from each group and its key.
Declaration
-
[PublicAPI]
-public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string keySelector, [CanBeNull] params object[] args)
+
public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, IEqualityComparer equalityComparer, params object[] args)
Parameters
@@ -1939,9 +1940,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- A IQueryable whose elements to group.
+ | A System.Linq.IQueryable whose elements to group.
|
@@ -1951,13 +1952,19 @@ Parameters
- | String |
+ System.String |
keySelector |
A string expression to specify the key for each element.
|
- | Object[] |
+ System.Collections.IEqualityComparer |
+ equalityComparer |
+ The comparer to use.
+ |
+
+
+ | System.Object[] |
args |
An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -1974,32 +1981,29 @@ Returns
- | IQueryable |
- A IQueryable where each element represents a projection over a group and its key.
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
|
- Examples
- var groupResult1 = queryable.GroupBy("NumberPropertyAsKey");
-var groupResult2 = queryable.GroupBy("new (NumberPropertyAsKey, StringPropertyAsKey)");
-
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, ParsingConfig, String, String)
+ GroupBy(IQueryable, ParsingConfig, String, Object[])
Groups the elements of a sequence according to a specified key string function
and creates a result value from each group and its key.
Declaration
-
public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string keySelector, [NotNull] string resultSelector)
+
[PublicAPI]
+public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, params object[] args)
Parameters
@@ -2012,9 +2016,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- A IQueryable whose elements to group.
+ | A System.Linq.IQueryable whose elements to group.
|
@@ -2024,15 +2028,15 @@ Parameters
- | String |
+ System.String |
keySelector |
A string expression to specify the key for each element.
|
- | String |
- resultSelector |
- A string expression to specify a result value from each group.
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -2047,33 +2051,32 @@ Returns
- | IQueryable |
- A IQueryable where each element represents a projection over a group and its key.
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
|
- Examples
- var groupResult1 = queryable.GroupBy("NumberPropertyAsKey", "StringProperty");
-var groupResult2 = queryable.GroupBy("new (NumberPropertyAsKey, StringPropertyAsKey)", "new (StringProperty1, StringProperty2)");
+ Examples
+ var groupResult1 = queryable.GroupBy("NumberPropertyAsKey");
+var groupResult2 = queryable.GroupBy("new (NumberPropertyAsKey, StringPropertyAsKey)");
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, ParsingConfig, String, String, Object[])
+ GroupBy(IQueryable, ParsingConfig, String, String)
Groups the elements of a sequence according to a specified key string function
and creates a result value from each group and its key.
Declaration
-
[PublicAPI]
-public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string keySelector, [NotNull] string resultSelector, object[] args)
+
public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, string resultSelector)
Parameters
@@ -2086,9 +2089,9 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- A IQueryable whose elements to group.
+ | A System.Linq.IQueryable whose elements to group.
|
@@ -2098,21 +2101,15 @@ Parameters
- | String |
+ System.String |
keySelector |
A string expression to specify the key for each element.
|
- | String |
+ System.String |
resultSelector |
A string expression to specify a result value from each group.
- |
-
-
- | Object[] |
- args |
- An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
@@ -2127,31 +2124,32 @@ Returns
- | IQueryable |
- A IQueryable where each element represents a projection over a group and its key.
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
|
- Examples
+ Examples
var groupResult1 = queryable.GroupBy("NumberPropertyAsKey", "StringProperty");
var groupResult2 = queryable.GroupBy("new (NumberPropertyAsKey, StringPropertyAsKey)", "new (StringProperty1, StringProperty2)");
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, String, Object[])
-
+ GroupBy(IQueryable, ParsingConfig, String, String, IEqualityComparer)
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
Declaration
-
[PublicAPI]
-public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] string keySelector, [CanBeNull] params object[] args)
+
public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, string resultSelector, IEqualityComparer equalityComparer)
Parameters
@@ -2164,19 +2162,34 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- |
+ A System.Linq.IQueryable whose elements to group.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
- | String |
+ System.String |
keySelector |
- |
+ A string expression to specify the key for each element.
+ |
- | Object[] |
- args |
- |
+ System.String |
+ resultSelector |
+ A string expression to specify a result value from each group.
+ |
+
+
+ | System.Collections.IEqualityComparer |
+ equalityComparer |
+ The comparer to use.
+ |
@@ -2190,25 +2203,28 @@ Returns
- | IQueryable |
- |
+ System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, String, String)
-
+ GroupBy(IQueryable, ParsingConfig, String, String, IEqualityComparer, Object[])
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
Declaration
-
public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] string keySelector, [NotNull] string resultSelector)
+
public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, string resultSelector, IEqualityComparer equalityComparer, object[] args)
Parameters
@@ -2221,19 +2237,40 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- |
+ A System.Linq.IQueryable whose elements to group.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
- | String |
+ System.String |
keySelector |
- |
+ A string expression to specify the key for each element.
+ |
- | String |
+ System.String |
resultSelector |
- |
+ A string expression to specify a result value from each group.
+ |
+
+
+ | System.Collections.IEqualityComparer |
+ equalityComparer |
+ The comparer to use.
+ |
+
+
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
+ |
@@ -2247,26 +2284,29 @@ Returns
- | IQueryable |
- |
+ System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
- GroupBy(IQueryable, String, String, Object[])
-
+ GroupBy(IQueryable, ParsingConfig, String, String, Object[])
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
Declaration
[PublicAPI]
-public static IQueryable GroupBy([NotNull] this IQueryable source, [NotNull] string keySelector, [NotNull] string resultSelector, object[] args)
+public static IQueryable GroupBy(this IQueryable source, ParsingConfig config, string keySelector, string resultSelector, object[] args)
Parameters
@@ -2279,24 +2319,34 @@ Parameters
- | IQueryable |
+ System.Linq.IQueryable |
source |
- |
+ A System.Linq.IQueryable whose elements to group.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
- | String |
+ System.String |
keySelector |
- |
+ A string expression to specify the key for each element.
+ |
- | String |
+ System.String |
resultSelector |
- |
+ A string expression to specify a result value from each group.
+ |
- | Object[] |
+ System.Object[] |
args |
- |
+ An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
+ |
@@ -2310,27 +2360,32 @@ Returns
- | IQueryable |
- |
+ System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
+ Examples
+ var groupResult1 = queryable.GroupBy("NumberPropertyAsKey", "StringProperty");
+var groupResult2 = queryable.GroupBy("new (NumberPropertyAsKey, StringPropertyAsKey)", "new (StringProperty1, StringProperty2)");
+
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
-
- GroupByMany<TElement>(IEnumerable<TElement>, Func<TElement, Object>[])
- Groups the elements of a sequence according to multiple specified key functions
-and creates a result value from each group (and subgroups) and its key.
+
+
GroupBy(IQueryable, String, IEqualityComparer, Object[])
+
Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
Declaration
-
public static IEnumerable<GroupResult> GroupByMany<TElement>([NotNull] this IEnumerable<TElement> source, params Func<TElement, object>[] keySelectors)
+
public static IQueryable GroupBy(this IQueryable source, string keySelector, IEqualityComparer equalityComparer, params object[] args)
Parameters
@@ -2343,66 +2398,60 @@ Parameters
- | IEnumerable<TElement> |
+ System.Linq.IQueryable |
source |
- A IEnumerable<T> whose elements to group.
- |
+ |
- | Func<TElement, Object>[] |
- keySelectors |
- Lambda expressions to specify the keys for each element.
- |
+ System.String |
+ keySelector |
+ |
-
-
-
Returns
-
-
- | Type |
- Description |
+ System.Collections.IEqualityComparer |
+ equalityComparer |
+ |
-
-
- | IEnumerable<GroupResult> |
- A IEnumerable<T> of type GroupResult where each element represents a projection over a group, its key, and its subgroups.
- |
+ System.Object[] |
+ args |
+ |
-
Type Parameters
+
Returns
- | Name |
+ Type |
Description |
- | TElement |
- |
+ System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
-
-
GroupByMany<TElement>(IEnumerable<TElement>, ParsingConfig, String[])
-
Groups the elements of a sequence according to multiple specified key string functions
-and creates a result value from each group (and subgroups) and its key.
+
+
GroupBy(IQueryable, String, Object[])
+
Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
Declaration
-
public static IEnumerable<GroupResult> GroupByMany<TElement>([NotNull] this IEnumerable<TElement> source, [NotNull] ParsingConfig config, params string[] keySelectors)
+
[PublicAPI]
+public static IQueryable GroupBy(this IQueryable source, string keySelector, params object[] args)
Parameters
@@ -2415,22 +2464,19 @@ Parameters
- | IEnumerable<TElement> |
+ System.Linq.IQueryable |
source |
- A IEnumerable<T> whose elements to group.
- |
+ |
- | ParsingConfig |
- config |
- The ParsingConfig.
- |
+ System.String |
+ keySelector |
+ |
- | String[] |
- keySelectors |
- String expressions to specify the keys for each element.
- |
+ System.Object[] |
+ args |
+ |
@@ -2444,41 +2490,28 @@
Returns
- | IEnumerable<GroupResult> |
- A IEnumerable<T> of type GroupResult where each element represents a projection over a group, its key, and its subgroups.
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
|
- Type Parameters
-
-
-
- | Name |
- Description |
-
-
-
-
- | TElement |
- |
-
-
-
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
-
- GroupByMany<TElement>(IEnumerable<TElement>, String[])
-
+
+ GroupBy(IQueryable, String, String)
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
Declaration
-
public static IEnumerable<GroupResult> GroupByMany<TElement>([NotNull] this IEnumerable<TElement> source, params string[] keySelectors)
+
public static IQueryable GroupBy(this IQueryable source, string keySelector, string resultSelector)
Parameters
@@ -2491,61 +2524,54 @@ Parameters
- | IEnumerable<TElement> |
+ System.Linq.IQueryable |
source |
|
- | String[] |
- keySelectors |
+ System.String |
+ keySelector |
|
-
-
- Returns
-
- Type Parameters
+ Returns
- | Name |
+ Type |
Description |
- | TElement |
- |
+ System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
-
- GroupJoin(IQueryable, IEnumerable, String, String, String, Object[])
-
+
+ GroupBy(IQueryable, String, String, IEqualityComparer)
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
Declaration
-
public static IQueryable GroupJoin([NotNull] this IQueryable outer, [NotNull] IEnumerable inner, [NotNull] string outerKeySelector, [NotNull] string innerKeySelector, [NotNull] string resultSelector, params object[] args)
+
public static IQueryable GroupBy(this IQueryable source, string keySelector, string resultSelector, IEqualityComparer equalityComparer)
Parameters
@@ -2558,32 +2584,1129 @@ Parameters
- | IQueryable |
- outer |
+ System.Linq.IQueryable |
+ source |
|
- | IEnumerable |
- inner |
+ System.String |
+ keySelector |
|
- | String |
- outerKeySelector |
+ System.String |
+ resultSelector |
|
- | String |
- innerKeySelector |
+ System.Collections.IEqualityComparer |
+ equalityComparer |
|
-
- | String |
- resultSelector |
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupBy(IQueryable, String, String, IEqualityComparer, Object[])
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
+
+ Declaration
+
+
public static IQueryable GroupBy(this IQueryable source, string keySelector, string resultSelector, IEqualityComparer equalityComparer, object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ |
+
+
+ | System.String |
+ keySelector |
+ |
+
+
+ | System.String |
+ resultSelector |
+ |
+
+
+ | System.Collections.IEqualityComparer |
+ equalityComparer |
+ |
+
+
+ | System.Object[] |
+ args |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupBy(IQueryable, String, String, Object[])
+ Groups the elements of a sequence according to a specified key string function
+and creates a result value from each group and its key.
+
+
+ Declaration
+
+
[PublicAPI]
+public static IQueryable GroupBy(this IQueryable source, string keySelector, string resultSelector, object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ |
+
+
+ | System.String |
+ keySelector |
+ |
+
+
+ | System.String |
+ resultSelector |
+ |
+
+
+ | System.Object[] |
+ args |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ A System.Linq.IQueryable where each element represents a projection over a group and its key.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupByMany<TElement>(IEnumerable<TElement>, Func<TElement, Object>[])
+ Groups the elements of a sequence according to multiple specified key functions
+and creates a result value from each group (and subgroups) and its key.
+
+
+ Declaration
+
+
public static IEnumerable<GroupResult> GroupByMany<TElement>(this IEnumerable<TElement> source, params Func<TElement, object>[] keySelectors)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<TElement> |
+ source |
+ A System.Collections.Generic.IEnumerable<T> whose elements to group.
+ |
+
+
+ | System.Func<TElement, System.Object>[] |
+ keySelectors |
+ Lambda expressions to specify the keys for each element.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<GroupResult> |
+ A System.Collections.Generic.IEnumerable<T> of type GroupResult where each element represents a projection over a group, its key, and its subgroups.
+ |
+
+
+
+ Type Parameters
+
+
+
+ | Name |
+ Description |
+
+
+
+
+ | TElement |
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupByMany<TElement>(IEnumerable<TElement>, ParsingConfig, String[])
+ Groups the elements of a sequence according to multiple specified key string functions
+and creates a result value from each group (and subgroups) and its key.
+
+
+ Declaration
+
+
public static IEnumerable<GroupResult> GroupByMany<TElement>(this IEnumerable<TElement> source, ParsingConfig config, params string[] keySelectors)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<TElement> |
+ source |
+ A System.Collections.Generic.IEnumerable<T> whose elements to group.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
+
+
+ | System.String[] |
+ keySelectors |
+ System.String expressions to specify the keys for each element.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<GroupResult> |
+ A System.Collections.Generic.IEnumerable<T> of type GroupResult where each element represents a projection over a group, its key, and its subgroups.
+ |
+
+
+
+ Type Parameters
+
+
+
+ | Name |
+ Description |
+
+
+
+
+ | TElement |
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupByMany<TElement>(IEnumerable<TElement>, String[])
+ Groups the elements of a sequence according to multiple specified key string functions
+and creates a result value from each group (and subgroups) and its key.
+
+
+ Declaration
+
+
public static IEnumerable<GroupResult> GroupByMany<TElement>(this IEnumerable<TElement> source, params string[] keySelectors)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<TElement> |
+ source |
+ |
+
+
+ | System.String[] |
+ keySelectors |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Collections.Generic.IEnumerable<GroupResult> |
+ A System.Collections.Generic.IEnumerable<T> of type GroupResult where each element represents a projection over a group, its key, and its subgroups.
+ |
+
+
+
+ Type Parameters
+
+
+
+ | Name |
+ Description |
+
+
+
+
+ | TElement |
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupJoin(IQueryable, IEnumerable, String, String, String, Object[])
+ Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable GroupJoin(this IQueryable outer, IEnumerable inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ outer |
+ |
+
+
+ | System.Collections.IEnumerable |
+ inner |
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ |
+
+
+ | System.String |
+ resultSelector |
+ |
+
+
+ | System.Object[] |
+ args |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable obtained by performing a grouped join on two sequences.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ GroupJoin(IQueryable, ParsingConfig, IEnumerable, String, String, String, Object[])
+ Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable GroupJoin(this IQueryable outer, ParsingConfig config, IEnumerable inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ outer |
+ The first sequence to join.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
+
+
+ | System.Collections.IEnumerable |
+ inner |
+ The sequence to join to the first sequence.
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ A dynamic function to extract the join key from each element of the first sequence.
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ A dynamic function to extract the join key from each element of the second sequence.
+ |
+
+
+ | System.String |
+ resultSelector |
+ A dynamic function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
+ |
+
+
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicates as parameters. Similar to the way String.Format formats strings.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable obtained by performing a grouped join on two sequences.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Join(IQueryable, IEnumerable, String, String, String, Object[])
+ Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable Join(this IQueryable outer, IEnumerable inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ outer |
+ |
+
+
+ | System.Collections.IEnumerable |
+ inner |
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ |
+
+
+ | System.String |
+ resultSelector |
+ |
+
+
+ | System.Object[] |
+ args |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable obtained by performing an inner join on two sequences.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Join(IQueryable, ParsingConfig, IEnumerable, String, String, String, Object[])
+ Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable Join(this IQueryable outer, ParsingConfig config, IEnumerable inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ outer |
+ The first sequence to join.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
+
+
+ | System.Collections.IEnumerable |
+ inner |
+ The sequence to join to the first sequence.
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ A dynamic function to extract the join key from each element of the first sequence.
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ A dynamic function to extract the join key from each element of the second sequence.
+ |
+
+
+ | System.String |
+ resultSelector |
+ A dynamic function to create a result element from two matching elements.
+ |
+
+
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicates as parameters. Similar to the way String.Format formats strings.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ An System.Linq.IQueryable obtained by performing an inner join on two sequences.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Join<TElement>(IQueryable<TElement>, IEnumerable<TElement>, String, String, String, Object[])
+ Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable<TElement> Join<TElement>(this IQueryable<TElement> outer, IEnumerable<TElement> inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable<TElement> |
+ outer |
+ |
+
+
+ | System.Collections.Generic.IEnumerable<TElement> |
+ inner |
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ |
+
+
+ | System.String |
+ resultSelector |
+ |
+
+
+ | System.Object[] |
+ args |
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable<TElement> |
+ An System.Linq.IQueryable<T> that has elements of type TResult obtained by performing an inner join on two sequences.
+ |
+
+
+
+ Type Parameters
+
+
+
+ | Name |
+ Description |
+
+
+
+
+ | TElement |
+ The type of the elements of both sequences, and the result.
+ |
+
+
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Join<TElement>(IQueryable<TElement>, ParsingConfig, IEnumerable<TElement>, String, String, String, Object[])
+ Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
+
+
+ Declaration
+
+
public static IQueryable<TElement> Join<TElement>(this IQueryable<TElement> outer, ParsingConfig config, IEnumerable<TElement> inner, string outerKeySelector, string innerKeySelector, string resultSelector, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable<TElement> |
+ outer |
+ The first sequence to join.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
+
+
+ | System.Collections.Generic.IEnumerable<TElement> |
+ inner |
+ The sequence to join to the first sequence.
+ |
+
+
+ | System.String |
+ outerKeySelector |
+ A dynamic function to extract the join key from each element of the first sequence.
+ |
+
+
+ | System.String |
+ innerKeySelector |
+ A dynamic function to extract the join key from each element of the second sequence.
+ |
+
+
+ | System.String |
+ resultSelector |
+ A dynamic function to create a result element from two matching elements.
+ |
+
+
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicates as parameters. Similar to the way String.Format formats strings.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable<TElement> |
+ An System.Linq.IQueryable<T> that has elements of type TResult obtained by performing an inner join on two sequences.
+ |
+
+
+
+ Type Parameters
+
+
+
+ | Name |
+ Description |
+
+
+
+
+ | TElement |
+ The type of the elements of both sequences, and the result.
+ |
+
+
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Last(IQueryable)
+ Returns the last element of a sequence.
+
+
+ Declaration
+
+
public static object Last(this IQueryable source)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Object |
+ The last element in source.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Last(IQueryable, ParsingConfig, String, Object[])
+ Returns the last element of a sequence that satisfies a specified condition.
+
+
+ Declaration
+
+
public static object Last(this IQueryable source, ParsingConfig config, string predicate, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
+ |
+
+
+ | ParsingConfig |
+ config |
+ The ParsingConfig.
+ |
+
+
+ | System.String |
+ predicate |
+ A function to test each element for a condition.
+ |
+
+
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Object |
+ The first element in source that passes the test in predicate.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Last(IQueryable, LambdaExpression)
+ Returns the last element of a sequence that satisfies a specified condition.
+
+
+ Declaration
+
+
public static object Last(this IQueryable source, LambdaExpression lambda)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
+ |
+
+
+ | System.Linq.Expressions.LambdaExpression |
+ lambda |
+ A cached Lambda Expression.
+ |
+
+
+
+ Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Object |
+ The first element in source that passes the test in predicate.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ Last(IQueryable, String, Object[])
+ Returns the last element of a sequence that satisfies a specified condition.
+
+
+ Declaration
+
+
public static object Last(this IQueryable source, string predicate, params object[] args)
+
+ Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ |
+
+
+ | System.String |
+ predicate |
|
- | Object[] |
+ System.Object[] |
args |
|
@@ -2599,26 +3722,27 @@ Returns
- | IQueryable |
- |
+ System.Object |
+ The first element in source that passes the test in predicate.
+ |
|
- Improve this Doc
+ Improve this Doc
- View Source
+ View Source
-
- GroupJoin(IQueryable, ParsingConfig, IEnumerable, String, String, String, Object[])
- Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
+
+
LastOrDefault(IQueryable)
+
Returns the last element of a sequence, or a default value if the sequence contains no elements.
Declaration
-
public static IQueryable GroupJoin([NotNull] this IQueryable outer, [NotNull] ParsingConfig config, [NotNull] IEnumerable inner, [NotNull] string outerKeySelector, [NotNull] string innerKeySelector, [NotNull] string resultSelector, params object[] args)
+
public static object LastOrDefault(this IQueryable source)
Parameters
@@ -2631,9 +3755,59 @@ Parameters
- | IQueryable |
- outer |
- The first sequence to join.
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
+ |
+
+
+
+
Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Object |
+ default if source is empty; otherwise, the last element in source.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+
LastOrDefault(IQueryable, ParsingConfig, String, Object[])
+
Returns the last element of a sequence that satisfies a specified condition, or a default value if the sequence contains no elements.
+
+
+
Declaration
+
+
public static object LastOrDefault(this IQueryable source, ParsingConfig config, string predicate, params object[] args)
+
+
Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
|
@@ -2643,34 +3817,131 @@ Parameters
- | IEnumerable |
- inner |
- The sequence to join to the first sequence.
+ | System.String |
+ predicate |
+ A function to test each element for a condition.
|
- | String |
- outerKeySelector |
- A dynamic function to extract the join key from each element of the first sequence.
+ | System.Object[] |
+ args |
+ An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.
|
+
+
+
Returns
+
+
+
+ | Type |
+ Description |
+
+
+
- | String |
- innerKeySelector |
- A dynamic function to extract the join key from each element of the second sequence.
+ | System.Object |
+ The first element in source that passes the test in predicate.
+ |
+
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+
LastOrDefault(IQueryable, LambdaExpression)
+
Returns the last element of a sequence that satisfies a specified condition, or a default value if the sequence contains no elements.
+
+
+
Declaration
+
+
public static object LastOrDefault(this IQueryable source, LambdaExpression lambda)
+
+
Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ The System.Linq.IQueryable to return the last element of.
|
- | String |
- resultSelector |
- A dynamic function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
+ | System.Linq.Expressions.LambdaExpression |
+ lambda |
+ A cached Lambda Expression.
+ |
+
+
+
+
Returns
+
+
+
+ | Type |
+ Description |
+
+
+
+
+ | System.Object |
+ The first element in source that passes the test in predicate.
|
+
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+
LastOrDefault(IQueryable, String, Object[])
+
Returns the last element of a sequence that satisfies a specified condition, or a default value if the sequence contains no elements.
+
+
+
Declaration
+
+
public static object LastOrDefault(this IQueryable source, string predicate, params object[] args)
+
+
Parameters
+
+
+
+ | Type |
+ Name |
+ Description |
+
+
+
+
+ | System.Linq.IQueryable |
+ source |
+ |
+
+
+ | System.String |
+ predicate |
+ |
+
- | Object[] |
+ System.Object[] |
args |
- An object array that contains zero or more objects to insert into the predicates as parameters. Similar to the way String.Format formats strings.
- |
+ |
@@ -2684,26 +3955,27 @@
Returns
- | IQueryable |
- An IQueryable obtained by performing a grouped join on two sequences.
+ | System.Object |
+ The first element in source that passes the test in predicate.
|