Cleaned up readme sample

This commit is contained in:
Koen Bekkenutte
2021-06-04 02:03:36 +08:00
parent 4db518896b
commit 7ba1caa133
3 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ namespace ReadmeSample.Entities
public int Id { get; set; }
public int UserId { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime? FulfilledDate { get; set; }
public decimal TaxRate { get; set; }
@@ -20,6 +21,6 @@ namespace ReadmeSample.Entities
[Projectable] public decimal Subtotal => Items.Sum(item => item.Product.ListPrice * item.Quantity);
[Projectable] public decimal Tax => Subtotal * TaxRate;
[Projectable] public decimal GrandTotal => Subtotal + Tax;
[Projectable] public decimal GrandTotal => Subtotal * TaxRate;
}
}