From bed36cfe2e56df769a76cadcec00015e7eeb9a67 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 21 Dec 2022 19:36:18 +0800 Subject: Develop secret api. v57 --- docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs') diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs index eab8567..dc32387 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs @@ -108,7 +108,7 @@ public class CrudService : IDisposable where TEntity : class return result; } - public void UpdateByKey(object key, TEntity entity, UpdateBehavior behavior) + public void UpdateByKey(object key, TEntity entity, UpdateBehavior behavior = UpdateBehavior.None) { var affectedCount = _table.Update(_dbConnection, WhereClause.Create().Eq(_table.KeyColumn.ColumnName, key), ConvertEntityToUpdateClauses(entity, behavior)); -- cgit v1.2.3