Interface IGroupedQuery<T>
Represents result of grouping operation.
Inherited Members
Namespace: Kros.KORM.Query
Assembly: Kros.KORM.dll
Syntax
public interface IGroupedQuery<T> : IQueryBase<T>, IOrderedQueryable<T>, IQueryable<T>, IEnumerable<T>, IOrderedQueryable, IQueryable, IEnumerable
Type Parameters
Name | Description |
---|---|
T | Type of model class. |
Methods
OrderBy(String)
Add order by statement to sql.
Declaration
IOrderedQuery<T> OrderBy(string orderBy)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderBy | The order by statement. |
Returns
Type | Description |
---|---|
IOrderedQuery<T> | Query for enumerable models. |
Examples
var people = database.Query<Person>().OrderBy("FirstName DESC, LastName");
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if |
See Also
IQueryBase<T>