OrderProductPartialClass.cs 566 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OOO_WriteAndClear.DBModels
  7. {
  8. public partial class OrderProduct : ICloneable
  9. {
  10. public decimal Price =>
  11. ProductArticleNumberNavigation.CurrentPrice
  12. * ProductAmount;
  13. public decimal PriceWithoutDiscount =>
  14. ProductArticleNumberNavigation.ProductCost
  15. * ProductAmount;
  16. public object Clone()
  17. {
  18. return MemberwiseClone();
  19. }
  20. }
  21. }