Пример #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            var      db = new DataClasses1DataContext();
            firstone c  = new firstone
            {
                name  = TextBox1.Text.Trim(),
                email = TextBox2.Text.Trim(),
                //Status = "Active"
            };

            //firstone.Connection.ConnectionString =
            //System.Configuration.ConfigurationManager.AppSettings["constr"];
            // db.firstone.InsertOnSubmit(c);
            db.SubmitChanges();
        }
Пример #2
0
 partial void Updatefirstone(firstone instance);
Пример #3
0
 partial void Deletefirstone(firstone instance);
Пример #4
0
 partial void Insertfirstone(firstone instance);