示例#1
0
        protected void btInsertar_Click(object sender, EventArgs e)
        {
            try
            {
                // Instancio el contexto de datos: mi conexión con la BD
                NortWndDataContext bd = new NortWndDataContext();

                Products miProducto2 = new Products();

                bd.Products.InsertOnSubmit(miProducto2);

                bd.SubmitChanges();
            }
            catch ( Exception ex )
            {

            }
        }
示例#2
0
		private void detach_Products(Products entity)
		{
			this.SendPropertyChanging();
			entity.Categories = null;
		}
示例#3
0
		private void attach_Products(Products entity)
		{
			this.SendPropertyChanging();
			entity.Categories = this;
		}
示例#4
0
 partial void DeleteProducts(Products instance);
示例#5
0
 partial void UpdateProducts(Products instance);
示例#6
0
 partial void InsertProducts(Products instance);