コード例 #1
0
    public static int InsertFacturaDetalle(FacturaDetalle theData)
    {
        int?detalleId = 0;

        try
        {
            FacturaDetalleDSTableAdapters.FacturaDetalleTableAdapter localAdapter = new FacturaDetalleDSTableAdapters.FacturaDetalleTableAdapter();
            localAdapter.InsertFacturaDetalle(theData.FacturaId, theData.ProductoId, theData.AlmacenId, theData.PesoKG, theData.Monto, ref detalleId);
        }
        catch (Exception)
        {
            throw;
        }

        return(detalleId.Value);
    }