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); } }