v3.0.3
Download the library here
- ADDED: Identity Propagation
When setting the autoPropagateIdentity
value to true, the identity will automatically propagate to item and list of items.
The property name must have the name ID
or [EntityName]ID
to allow us to propagate it.
DapperPlusManager.Entity<Invoice>().Identity(x => x.ID, "InvoiceID", true);
public class Invoice
{
public int ID { get; set; }
public string Number { get; set; }
public InvoiceMeta InvoiceMeta { get; set; }
public List<InvoiceItem> InvoiceItems { get; set; }
}
public class InvoiceMeta
{
public int InvoiceID { get; set; }
public decimal TotalPrice { get; set; }
public int TotalQuantity { get; set; }
}
public class InvoiceItem
{
public int InvoiceItemID { get; set; }
public int InvoiceID { get; set; }
public decimal UnitPrice { get; set; }
public decimal UnitDiscount { get; set; }
public int Quantity { get; set; }
}
Trial unlocked until the end of February