yep
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Dapper;
|
||||
using Shogi.Api.Extensions;
|
||||
using Shogi.Api.Repositories.Dto;
|
||||
using Shogi.Contracts.Api;
|
||||
using Shogi.Domain;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
@@ -74,9 +74,11 @@ public class SessionRepository : ISessionRepository
|
||||
"session.CreateMove",
|
||||
new
|
||||
{
|
||||
To = command.To,
|
||||
From = command.From,
|
||||
IsPromotion = command.IsPromotion
|
||||
command.To,
|
||||
command.From,
|
||||
command.IsPromotion,
|
||||
command.PieceFromHand,
|
||||
SessionName = sessionName
|
||||
},
|
||||
commandType: CommandType.StoredProcedure);
|
||||
}
|
||||
@@ -84,6 +86,7 @@ public class SessionRepository : ISessionRepository
|
||||
|
||||
public interface ISessionRepository
|
||||
{
|
||||
Task CreateMove(string sessionName, MovePieceCommand command);
|
||||
Task CreateSession(Session session);
|
||||
Task DeleteSession(string name);
|
||||
Task<Session?> ReadSession(string name);
|
||||
|
||||
Reference in New Issue
Block a user