Show / Hide Table of Contents

Class DbTable<T>

Represents a database table.

Inheritance
System.Object
DataSource
DbSet<T>
DbTable<T>
Implements
IDbTable
IDbSet
Inherited Members
DbSet<T>.DbSession
DbSet<T>._
DbSet<T>.Model
DbSet<T>.IDbSet.QueryStatement
DbSet<T>.IDbSet.FromClause
DbSet<T>.IDbSet.SequentialQueryStatement
DbSet<T>.Where(Func<T, _Boolean>)
DbSet<T>.OrderBy(Func<T, ColumnSort>[])
DbSet<T>.OrderBy(Int32, Int32, Func<T, ColumnSort>[])
DbSet<T>.OrderBy(Func<T, ColumnSort[]>)
DbSet<T>.OrderBy(Int32, Int32, Func<T, ColumnSort[]>)
DbSet<T>.ToDataSetAsync(CancellationToken)
DbSet<T>.ToDataSetAsync(Action<T>, CancellationToken)
DbSet<T>.ToJsonStringAsync(Boolean, CancellationToken)
DbSet<T>.Union(DbSet<T>)
DbSet<T>.UnionAll(DbSet<T>)
DbSet<T>.CountAsync()
DbSet<T>.CountAsync(CancellationToken)
DbSet<T>.ToDbQuery<TDerived>()
DbSet<T>.IDbSet.ToDataSetAsync(CancellationToken)
DbSet<T>.ExecuteDbReaderAsync(CancellationToken)
DbSet<T>.Entity
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)
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public sealed class DbTable<T> : DbSet<T>, IDbTable, IDbSet where T : class, IEntity, new()
Type Parameters
Name Description
T

Entity type of database table.

Properties

Name Description
Description

Gets the description of this table.

DesignMode

Gets a value indicating whether this DbTable object is in design mode.

Identifier

Gets the identifier of this table.

Kind
Name

Gets the name of this table.

Methods

Name Description
CreateChildAsync<TChild>(Action<TChild>, Func<T, TChild>)

Creates child tempoary table.

CreateChildAsync<TChild>(Action<TChild>, Func<T, TChild>, CancellationToken)

Creates child tempoary table.

CreateChildAsync<TChild>(Func<T, TChild>)

Creates child tempoary table.

DeleteAsync(Func<T, _Boolean>, CancellationToken)

Deletes records in this database table by condition.

DeleteAsync(CancellationToken)

Deletes all records in this database table.

DeleteAsync<TSource>(DataSet<TSource>, Func<TSource, T, KeyMapping>, CancellationToken)

Deletes records in this database table from matching DataSet.

DeleteAsync<TSource>(DataSet<TSource>, Int32, Func<TSource, T, KeyMapping>, CancellationToken)

Deletes from matching row in DataSet.

DeleteAsync<TSource>(DataSet<TSource>, Int32, CancellationToken)

Deletes from matching row in DataSet.

DeleteAsync<TSource>(DataSet<TSource>, CancellationToken)

Deletes records in this database table from matching DataSet.

DeleteAsync<TSource>(DbSet<TSource>, Func<TSource, T, KeyMapping>, CancellationToken)

Deletes records in this database table from matching database recordset.

DeleteAsync<TSource>(DbSet<TSource>, CancellationToken)

Deletes records in this database table from matching database recordset.

GetChild<TChild>(Func<T, TChild>)

Gets the child tempoary table.

InsertAsync(Action<ColumnMapper, T>, Action<Nullable<Int64>>, CancellationToken)

Inserts values into this database table.

InsertAsync(Action<ColumnMapper, T>, CancellationToken)

Inserts values into this database table.

InsertAsync(Action<Nullable<Int64>>, CancellationToken)

Inserts default values into this database table.

InsertAsync(CancellationToken)

Inserts default values into this database table.

InsertAsync<TSource>(DataSet<TSource>, Action<ColumnMapper, TSource, T>, Boolean, CancellationToken)

Inserts into this table from DataSet.

InsertAsync<TSource>(DataSet<TSource>, Action<ColumnMapper, TSource, T>, CancellationToken)

Inserts into this table from DataSet.

InsertAsync<TSource>(DataSet<TSource>, Boolean, CancellationToken)

Inserts into this table from DataSet.

InsertAsync<TSource>(DataSet<TSource>, Int32, Action<ColumnMapper, TSource, T>, Boolean, CancellationToken)

Inserts specified DataRow in DataSet into this table.

InsertAsync<TSource>(DataSet<TSource>, Int32, Action<ColumnMapper, TSource, T>, CancellationToken)

Inserts specified DataRow in DataSet into this table.

InsertAsync<TSource>(DataSet<TSource>, Int32, CancellationToken)

Inserts specified DataRow in DataSet into this table.

InsertAsync<TSource>(DataSet<TSource>, CancellationToken)

Inserts into this table from DataSet.

InsertAsync<TSource>(DbSet<TSource>, Action<ColumnMapper, TSource, T>, CancellationToken)

Inserts into this database table from database recordset.

InsertAsync<TSource>(DbSet<TSource>, CancellationToken)

Inserts into this database table from database recordset.

ToString()
UpdateAsync(Action<ColumnMapper, T>, Func<T, _Boolean>, CancellationToken)

Updates subset of records with specified values.

UpdateAsync(Action<ColumnMapper, T>, CancellationToken)

Updates all records with specified values.

UpdateAsync<TSource>(DataSet<TSource>, Action<ColumnMapper, TSource, T>, Func<TSource, T, KeyMapping>, CancellationToken)

Updates records in this table from matching DataSet.

UpdateAsync<TSource>(DataSet<TSource>, Action<ColumnMapper, TSource, T>, CancellationToken)

Updates records in this table from matching DataSet.

UpdateAsync<TSource>(DataSet<TSource>, Int32, Action<ColumnMapper, TSource, T>, Func<TSource, T, KeyMapping>, CancellationToken)

Updates from matching row in DataSet.

UpdateAsync<TSource>(DataSet<TSource>, Int32, CancellationToken)

Updates from matching row in DataSet.

UpdateAsync<TSource>(DataSet<TSource>, CancellationToken)

Updates records in this table from matching DataSet.

UpdateAsync<TSource>(DbSet<TSource>, Action<ColumnMapper, TSource, T>, Func<TSource, T, KeyMapping>, CancellationToken)

Updates records from matching database recordset.

UpdateAsync<TSource>(DbSet<TSource>, Action<ColumnMapper, T>, Func<TSource, T, KeyMapping>, CancellationToken)

Updates records from matching database recordset.

UpdateAsync<TSource>(DbSet<TSource>, CancellationToken)

Updates records from matching database recordset.

Extension Methods

Extensions.SingleAsync<TEntity, T>(DbSet<TEntity>, Func<TEntity, T>, CancellationToken)
Extensions.SingleOrDefaultAsync<TEntity, T>(DbSet<TEntity>, Func<TEntity, T>, CancellationToken)
DataSourceExtensions.UpdateOriginalDataSource(DataSource, DataSource, Boolean)
DbTableExtensions.BuildInsertStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, Action<ColumnMapper, TSource, TTarget>)
DbTableExtensions.BuildInsertStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, IReadOnlyList<ColumnMapping>)
DbTableExtensions.BuildUpdateStatement(IDbTable, IDbTable, IReadOnlyList<ColumnMapping>, IReadOnlyList<ColumnMapping>)
DbTableExtensions.BuildUpdateStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, IReadOnlyList<ColumnMapping>, IReadOnlyList<ColumnMapping>)
DbTableExtensions.BuildUpdateStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, Action<ColumnMapper, TSource, TTarget>, IReadOnlyList<ColumnMapping>)
DbTableExtensions.BuildDeleteStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, IReadOnlyList<ColumnMapping>)
DbTableExtensions.UpdateAsync(IDbTable, DbSelectStatement, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest