예제 #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);