Esempio n. 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;
            }
        }
Esempio n. 2
0
 partial void UpdateGryMZ(GryMZ instance);
Esempio n. 3
0
 partial void DeleteGryMZ(GryMZ instance);
Esempio n. 4
0
 partial void InsertGryMZ(GryMZ instance);