Spaces:
Sleeping
Sleeping
Download InvoiceItem.cs from Ahmedtiger7/quick: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/InvoiceItem.cs
- Command line
-
hf download hf://spaces/Ahmedtiger7/quick/InvoiceItem.cs
-
curl -L -o InvoiceItem.cs https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/InvoiceItem.cs
786 Bytes
| using System.ComponentModel.DataAnnotations; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| namespace QuickInvoiceSaaS.Models | |
| { | |
| public class InvoiceItem | |
| { | |
| [] | |
| public int Id { get; set; } | |
| [] | |
| public int InvoiceId { get; set; } | |
| [] | |
| public Invoice? Invoice { get; set; } | |
| [] | |
| [] | |
| public string ProductName { get; set; } = string.Empty; | |
| public int Quantity { get; set; } = 1; | |
| [] | |
| public decimal UnitPrice { get; set; } | |
| [] | |
| public decimal LineTotal => Quantity * UnitPrice; // حساب تلقائي | |
| } | |
| } |