public void SubscribeToLobbyRoom(DTO.OPlayer player, int lobby) { try { PlayLobby pLobby = new PlayLobby(); pLobby.LobbyId = lobby; pLobby.PlayerId = (int)player.PlayerId; dc.PlayLobbies.InsertOnSubmit(pLobby); dc.SubmitChanges(); } catch (Exception) { } }
public void CreatePlayLobby(DTO.OPlayer host, int lobby) { try { PlayLobby pLobby = new PlayLobby(); pLobby.HostPlayer = (int)host.PlayerId; pLobby.LobbyId = lobby; pLobby.PlayerId = (int)host.PlayerId; dc.PlayLobbies.InsertOnSubmit(pLobby); dc.SubmitChanges(); } catch (Exception) { } }
partial void UpdatePlayLobby(PlayLobby instance);
partial void DeletePlayLobby(PlayLobby instance);
partial void InsertPlayLobby(PlayLobby instance);