FlexLabs.Upsert icon indicating copy to clipboard operation
FlexLabs.Upsert copied to clipboard

FlexLabs.Upsert is a library that brings UPSERT functionality to common database providers for Entity Framework in their respective native SQL syntax

Results 47 FlexLabs.Upsert issues
Sort by recently updated
recently updated
newest added

Getting this error when trying to use the library ``` var p = new Product() { ProductName = request.ProductName, ProductDescription = request.ProductDescription }; await _context.Product.Upsert(p) .On(w => w.Id == request.Id)...

https://github.com/artiomchi/FlexLabs.Upsert/blob/152a890b21566dc617d13032df2404fd07d5c29c/src/FlexLabs.EntityFrameworkCore.Upsert/Runners/RelationalUpsertCommandRunner.cs#L170 According to this line, allow insert when property is not set as value generated or save behavior on update. I think it should be ``` var allowInserts = p.ValueGenerated...

I currently have a problem with Upsert not updating my entries in database. ``` await _context.Articles.UpsertRange(articles) .On(x => x.Id) .WhenMatched(x => new Article() { AccessId = x.AccessId }) .AllowIdentityMatch() .RunAsync(cancellationToken);...

I see we have this code in the UpsertCommandBuilder to build the command based on their runners. Is there any way we can pass these runners or replace them with...

It would be great if there is a method on `UpsertCommandBuilder` that just returns the SQL query. EF Core supports a similar method: https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.entityframeworkqueryableextensions.toquerystring?view=efcore-7.0 If you agree with the concept,...

Hello! How could a domain be implemented where the properties are set to private? Here is an example of the same: ` public class People { public Guid Id {...

I suggest a fix in this section [here](https://github.com/artiomchi/FlexLabs.Upsert/blob/152a890b21566dc617d13032df2404fd07d5c29c/src/FlexLabs.EntityFrameworkCore.Upsert/Runners/RelationalUpsertCommandRunner.cs#L192) it should look like so: ```C# while (entitiesProcessed < newEntities.Length) { var arguments = new List(); var argumentCount = 0; if (updateExpressions...