Array
(
[dirname] => .
[basename] => InvoiceLineItem.cs
[extension] => cs
[filename] => InvoiceLineItem
)
1. file=./InvoiceLineItem.cs
2. file=.//InvoiceLineItem.cs
3. file=InvoiceLineItem.cs
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace CustomerMaintenance.Models.DataLayer;
[PrimaryKey("InvoiceId", "ProductCode")]
public partial class InvoiceLineItem
{
[Key]
[Column("InvoiceID")]
public int InvoiceId { get; set; }
[Key]
[StringLength(10)]
[Unicode(false)]
public string ProductCode { get; set; } = null!;
[Column(TypeName = "money")]
public decimal UnitPrice { get; set; }
public int Quantity { get; set; }
[Column(TypeName = "money")]
public decimal ItemTotal { get; set; }
[ForeignKey("InvoiceId")]
[InverseProperty("InvoiceLineItems")]
public virtual Invoice Invoice { get; set; } = null!;
[ForeignKey("ProductCode")]
[InverseProperty("InvoiceLineItems")]
public virtual Product ProductCodeNavigation { get; set; } = null!;
}