Show / Hide Table of Contents

Method BuildDeleteStatement

| Improve this Doc View Source

BuildDeleteStatement<TSource, TTarget>(DbTable<TTarget>, DbSet<TSource>, IReadOnlyList<ColumnMapping>)

Builds DELETE query statement.

Declaration
public static DbSelectStatement BuildDeleteStatement<TSource, TTarget>(this DbTable<TTarget> target, DbSet<TSource> source, IReadOnlyList<ColumnMapping> keyMappings)

    where TSource : class, IEntity, new()

    where TTarget : class, IEntity, new()
Parameters
Type Name Description
DbTable<TTarget> target

The target DbTable.

DbSet<TSource> source

The source DbSet.

System.Collections.Generic.IReadOnlyList<ColumnMapping> keyMappings

Key mappings between source and target DbTables.

Returns
Type Description
DbSelectStatement

The query statement

Type Parameters
Name Description
TSource

Entity type of source DbSet.

TTarget

Entity type of target DbTable

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest