Exemple #1
0
        public void ADD_Zakupki(int id_preparat, int kolvo, float price, DateTime date)
        {
            Zakupki a = new Zakupki();

            a.id_preparat = id_preparat;
            a.kolvo       = kolvo;
            a.price       = price;
            a.date        = date;
            this.Zakupki.InsertOnSubmit(a);
            this.SubmitChanges();
        }
Exemple #2
0
 public void ADD_Zakupki(int id_preparat, int kolvo,float price,  DateTime date)
 {
     Zakupki a = new Zakupki();
     a.id_preparat = id_preparat;
     a.kolvo = kolvo;
     a.price = price;
     a.date = date;
     this.Zakupki.InsertOnSubmit(a);
     this.SubmitChanges();
 }