This commit is contained in:
2022-11-10 19:26:20 -06:00
parent 02b83efc88
commit b89760af8e
2 changed files with 8 additions and 3 deletions

View File

@@ -72,7 +72,12 @@ public class SessionRepository : ISessionRepository
using var connection = new SqlConnection(connectionString); using var connection = new SqlConnection(connectionString);
await connection.ExecuteAsync( await connection.ExecuteAsync(
"session.CreateMove", "session.CreateMove",
new { }, new
{
To = command.To,
From = command.From,
IsPromotion = command.IsPromotion
},
commandType: CommandType.StoredProcedure); commandType: CommandType.StoredProcedure);
} }
} }

View File

@@ -5,5 +5,5 @@
@PieceName NVARCHAR(13), @PieceName NVARCHAR(13),
@SessionName [session].[SessionName] @SessionName [session].[SessionName]
AS AS
SELECT @param1, @param2
RETURN 0 INSERT INTO [session].[Move]