stevekirks / EntityFrameworkCore.MergeExtension

Extension methods for EntityFrameworkCore.DbContext to SQL MERGE two tables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entity Framework Core SQL MERGE Extension

Adds extension methods to an EntityFrameworkCore.DbContext to perform a SQL MERGE between a DbContext Entity and another table.

CI

Usage

dbContext.MergeInto<SourceEntityType>("[dbo].[TargetTable]");

or

dbContext.MergeFrom<TargetEntityType>("[dbo].[SourceTable]");

About

Extension methods for EntityFrameworkCore.DbContext to SQL MERGE two tables

License:MIT License


Languages

Language:C# 100.0%