Move from the hand.

This commit is contained in:
2023-02-01 22:49:28 -06:00
parent e2eff4f8b5
commit 3bf9aa3ee3
29 changed files with 248 additions and 133 deletions

View File

@@ -73,6 +73,15 @@ public class SessionRepository : ISessionRepository
public async Task CreateMove(string sessionName, MovePieceCommand command)
{
var yep = new
{
command.To,
command.From,
command.IsPromotion,
command.PieceFromHand,
SessionName = sessionName
};
using var connection = new SqlConnection(connectionString);
await connection.ExecuteAsync(
"session.CreateMove",
@@ -81,7 +90,7 @@ public class SessionRepository : ISessionRepository
command.To,
command.From,
command.IsPromotion,
command.PieceFromHand,
PieceFromHand = command.PieceFromHand.ToString(),
SessionName = sessionName
},
commandType: CommandType.StoredProcedure);