Skip to content

Commit

Permalink
Map Grant_Save object explicitly (#3624)
Browse files Browse the repository at this point in the history
  • Loading branch information
withinfocus authored Dec 29, 2023
1 parent bfa9269 commit ea162d5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit ea162d5

Please sign in to comment.