You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that you should use another version of method. see..
/// <summary>
/// Specifies which columns should be updated when a matched entity is found.
/// The second type parameter points to the entity that was originally passed to be inserted
/// </summary>
/// <param name="updater">The expression that returns a new instance of TEntity, with the columns that have to be updated being initialised with new values</param>
/// <returns>The current instance of the UpsertCommandBuilder</returns>
public UpsertCommandBuilder<TEntity> WhenMatched(Expression<Func<TEntity, TEntity, TEntity>> updater)
{
I currently have a problem with Upsert not updating my entries in database.
Above generates following:
That query will run without any errors but the AccessId in database won't be updated.
If i instead manually change the SQL to:
It works as intended.
Anyone have any idea what could be the problem here? I run .net 7, latest upsert package, postgresql 14.
The text was updated successfully, but these errors were encountered: