Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ModelDataInterfaceDataContext db = new ModelDataInterfaceDataContext(Connection.GetStringConnection());
            PAIR ob = new PAIR();

            ob.PairName = textBox1.Text;
            db.PAIRs.InsertOnSubmit(ob);
            db.SubmitChanges();
            this.Close();
        }
 partial void UpdatePAIR(PAIR instance);
 partial void DeletePAIR(PAIR instance);
 partial void InsertPAIR(PAIR instance);