Exemple #1
0
        public string AddGame(string name, string description, float price) // metoda dodajaca gre do tabeli gry
        {
            GryMZ NewGame = new GryMZ();

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

            database.GryMZs.InsertOnSubmit(NewGame);

            try
            {
                database.SubmitChanges();
                return("Pomyślnie dodano grę");
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemple #2
0
 partial void UpdateGryMZ(GryMZ instance);
Exemple #3
0
 partial void DeleteGryMZ(GryMZ instance);
Exemple #4
0
 partial void InsertGryMZ(GryMZ instance);