Skip to content

ExecuteUpdateExtensions

Mike King edited this page Nov 9, 2025 · 4 revisions

ExecuteUpdateExtensions Class

Execute Update Extensions.

public static class ExecuteUpdateExtensions

Inheritance System.Object 🡒 ExecuteUpdateExtensions

Methods
ExecuteDeleteGetCountAsync<TSource>(this IQueryable<TSource>, CancellationToken) Deletes all database rows for the entity instances which match the LINQ query from the database.
ExecuteDeleteGetRowsAsync<TSource>(this IQueryable<TSource>, CancellationToken) Deletes all database rows for the entity instances which match the LINQ query from the database.
ExecuteInsertAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Insert a database row.
ExecuteInsertGetRowAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Insert a database row.
ExecuteUpdateGetCountAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Updates all database rows for the entity instances which match the LINQ query from the database.
ExecuteUpdateGetRowsAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Updates all database rows for the entity instances which match the LINQ query from the database.
ExecuteUpsertGetCountAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Update the entity instances which match the LINQ query from the database or insert an entry if none exist.
ExecuteUpsertGetRowsAsync<TSource>(this IQueryable<TSource>, Action<UpdateSettersBuilder<TSource>>, Action<UpdateSettersBuilder<TSource>>, CancellationToken) Update the entity instances which match the LINQ query from the database or insert an entry if none exist.
UseExecuteUpdateExtensions(this DbContextOptionsBuilder) Use the Execute Update Extensions.

Clone this wiki locally