diff options
author | crupest <crupest@outlook.com> | 2022-12-21 19:36:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-21 19:36:18 +0800 |
commit | b022122b0a697f063433d5fe525e536bd23e8372 (patch) | |
tree | 4a71b079867ab3b6a86035637bcefaba8b660c87 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | |
parent | fb91ec33aea40c41900fee6bc2da769ff461ce38 (diff) | |
download | crupest-b022122b0a697f063433d5fe525e536bd23e8372.tar.gz crupest-b022122b0a697f063433d5fe525e536bd23e8372.tar.bz2 crupest-b022122b0a697f063433d5fe525e536bd23e8372.zip |
Develop secret api. v57
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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<TEntity> : 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)); |