예제 #1
0
        public void UpdatePlayer(Player player)
        {
            Execute(@"
update Player
set    Name = @name
       TeamId = @teamId", player);
        }
예제 #2
0
 public Player CreatePlayer(PlayerDto playerDto)
 {
     var player = new Player();
     player.PlayerId = _playerId;
     player.FirstName = playerDto.FirstName;
     player.Surname = playerDto.SurName;
     player.TeamId = playerDto.TeamId;
     _playerId++;
     return player;
 }
예제 #3
0
 public void CreatePlayer(Player player)
 {
     throw new System.NotImplementedException();
 }
예제 #4
0
        public void CreatePlayer(Player player)
        {
            Execute(@"
insert into Player
values(@name, @TeamId", player);
        }