public static void Create(DETALLE_ENTREGA_MATERIAL det_entr_mat_new)
 {
     using (BODEXDataContext ctx = new BODEXDataContext())
     {
         ctx.ListaEntregaMaterialDetalle.InsertOnSubmit(det_entr_mat_new);
         ctx.SubmitChanges();
     }
 }
        public static void Update(DETALLE_ENTREGA_MATERIAL det_entr_mat_upd)
        {
            using (BODEXDataContext ctx = new BODEXDataContext())
            {
                DETALLE_ENTREGA_MATERIAL EntregaMaterialDetalle = (from det_entr_mat in ctx.ListaEntregaMaterialDetalle
                                                                   where det_entr_mat.EM_ID.Equals(det_entr_mat_upd.EM_ID) && det_entr_mat.M_ID.Equals(det_entr_mat_upd.M_ID)
                                                                   select det_entr_mat).First<DETALLE_ENTREGA_MATERIAL>();

                EntregaMaterialDetalle.DEM_CANTIDAD = det_entr_mat_upd.DEM_CANTIDAD;
                ctx.SubmitChanges();
            }
        }
        public static void Delete(DETALLE_ENTREGA_MATERIAL det_entr_mat_del)
        {
            using (BODEXDataContext ctx = new BODEXDataContext())
            {
                DETALLE_ENTREGA_MATERIAL borrar = (from det_entr_mat in ctx.ListaEntregaMaterialDetalle
                                                   where det_entr_mat.EM_ID.Equals(det_entr_mat_del.EM_ID) && det_entr_mat.M_ID.Equals(det_entr_mat_del.M_ID)
                                                   select det_entr_mat).First<DETALLE_ENTREGA_MATERIAL>();

                ctx.ListaEntregaMaterialDetalle.DeleteOnSubmit(borrar);
                ctx.SubmitChanges();
            }
        }
Example #4
0
 partial void DeleteDETALLE_ENTREGA_MATERIAL(DETALLE_ENTREGA_MATERIAL instance);
Example #5
0
 partial void UpdateDETALLE_ENTREGA_MATERIAL(DETALLE_ENTREGA_MATERIAL instance);
Example #6
0
 partial void InsertDETALLE_ENTREGA_MATERIAL(DETALLE_ENTREGA_MATERIAL instance);