Class DbSet<T>
Represents database recordset.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public abstract class DbSet<T> : DataSource, IDbSet where T : class, IEntity, new()
Type Parameters
| Name | Description |
|---|---|
| T | Entity type of database recordset. |
Properties
| Name | Description |
|---|---|
| _ | Gets the entity of this database recordset. |
| DbSession | Gets the database session which owns this recordset. |
| Entity | Gets the entity associated with this database recordset. |
| Model |
Methods
| Name | Description |
|---|---|
| CountAsync() | Gets the total number of records of this database recordset. |
| CountAsync(CancellationToken) | Gets the total number of records of this database recordset. |
| ExecuteDbReaderAsync(CancellationToken) | Executes the database reader. |
| OrderBy(Func<T, ColumnSort[]>) | Sorts this database recordset. |
| OrderBy(Func<T, ColumnSort>[]) | Sorts this database recordset. |
| OrderBy(Int32, Int32, Func<T, ColumnSort[]>) | Sorts this database recordset. |
| OrderBy(Int32, Int32, Func<T, ColumnSort>[]) | Sorts this database recordset. |
| ToDataSetAsync(Action<T>, CancellationToken) | Saves this database recordset into DataSet. |
| ToDataSetAsync(CancellationToken) | Saves this database recordset into DataSet. |
| ToDbQuery<TDerived>() | Generates a database query. |
| ToJsonStringAsync(Boolean, CancellationToken) | Serializes this database recordset into JSON string. |
| Union(DbSet<T>) | Constructs a SQL UNION query. |
| UnionAll(DbSet<T>) | Constructs a SQL UNION ALL query. |
| Where(Func<T, _Boolean>) | Filters this database recordset. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IDbSet.FromClause | |
| IDbSet.QueryStatement | |
| IDbSet.SequentialQueryStatement | |
| IDbSet.ToDataSetAsync(CancellationToken) |