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 | bed36cfe2e56df769a76cadcec00015e7eeb9a67 (patch) | |
tree | 4a71b079867ab3b6a86035637bcefaba8b660c87 /docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs | |
parent | ae3b945816cffde014a84a3d61a32646747050cd (diff) | |
download | crupest-bed36cfe2e56df769a76cadcec00015e7eeb9a67.tar.gz crupest-bed36cfe2e56df769a76cadcec00015e7eeb9a67.tar.bz2 crupest-bed36cfe2e56df769a76cadcec00015e7eeb9a67.zip |
Develop secret api. v57
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs deleted file mode 100644 index 9eb6a08..0000000 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/DatabaseHelper.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace CrupestApi.Commons; - - -public static class DatabaseHelper -{ - public static string GenerateUpdateColumnString(this IEnumerable<string> updateColumnList, IEnumerable<KeyValuePair<string, string>>? paramNameMap = null) - { - paramNameMap = paramNameMap ?? Enumerable.Empty<KeyValuePair<string, string>>(); - var paramNameDictionary = new Dictionary<string, string>(paramNameMap); - - return string.Join(", ", updateColumnList.Select(x => $"{x} = @{paramNameDictionary.GetValueOrDefault(x) ?? x}")); - } -}
\ No newline at end of file |