From ea162d53182992a479c382187d04c268d75f1719 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Fri, 29 Dec 2023 12:38:22 -0500 Subject: [PATCH] Map Grant_Save object explicitly (#3624) --- .../Auth/Repositories/GrantRepository.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs b/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs index 46a1e3d9256c..250aec8e1582 100644 --- a/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs +++ b/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs @@ -51,7 +51,19 @@ public async Task SaveAsync(Grant obj) { var results = await connection.ExecuteAsync( "[dbo].[Grant_Save]", - obj, + new + { + obj.Key, + obj.Type, + obj.SubjectId, + obj.SessionId, + obj.ClientId, + obj.Description, + obj.CreationDate, + obj.ExpirationDate, + obj.ConsumedDate, + obj.Data + }, commandType: CommandType.StoredProcedure); } }