public static void creardetalleinicial() { using (EntidadesDataContext objDataContext = new EntidadesDataContext()) { Detalle_factura objEmp = new Detalle_factura(); // fields to be insert objEmp.Factura = null; objEmp.Productos = null; objDataContext.Detalle_factura.InsertOnSubmit(objEmp); // executes the commands to implement the changes to the database objDataContext.SubmitChanges(); } }
partial void DeleteDetalle_factura(Detalle_factura instance);
partial void InsertDetalle_factura(Detalle_factura instance);
partial void UpdateDetalle_factura(Detalle_factura instance);
private void detach_Detalle_factura(Detalle_factura entity) { this.SendPropertyChanging(); entity.Tb_Factura = null; }