Exemplo n.º 1
0
        public string AddGame(string name, string description, float price) // metoda dodajaca gre do tabeli gry
        {
            GryPK NewGame = new GryPK();

            NewGame.nazwa = name;
            NewGame.opis  = description;
            NewGame.cena  = price;

            database.GryPKs.InsertOnSubmit(NewGame);

            try
            {
                database.SubmitChanges();
                return("Pomyślnie dodano grę");
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemplo n.º 2
0
 partial void UpdateGryPK(GryPK instance);
Exemplo n.º 3
0
 partial void DeleteGryPK(GryPK instance);
Exemplo n.º 4
0
 partial void InsertGryPK(GryPK instance);