| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using InABox.Core;
- namespace Comal.Classes
- {
- public interface ICustomerProduct
- {
- CustomerLink Customer { get; set; }
- ProductLink Product { get; set; }
- double Discount { get; set; }
- }
-
- [UserTracking(typeof(Product))]
- public class CustomerProduct : Entity, IPersistent, IRemotable,
- ICustomerProduct,
- IManyToMany<Customer, Product>,
- IManyToMany<Product, Customer>,
- ILicense<ProductManagementLicense>,
- IExportable,
- IImportable
- {
- [EntityRelationship(DeleteAction.Cascade)]
- [EditorSequence(1)]
- public CustomerLink Customer { get; set; }
- [EntityRelationship(DeleteAction.Cascade)]
- [EditorSequence(2)]
- public ProductLink Product { get; set; }
- [EditorSequence(3)]
- [Comment("Discount for this product, given as a percentage.")]
- public double Discount { get; set; }
- [Obsolete("Replaced by Discount")]
- public ProductCharge Charge { get; set; }
- }
- }
|