public DraftPlanItem(IDraftItem item) : base(item) { // EF ComplexType objects cannot be null if (Unit == null) { Unit = new Unit(); } if (DeliveryDate == null) { DeliveryDate = new Period(); } if (DeliveryAddress == null) { DeliveryAddress = new AddressOptional(); } if (DeliveryLocation == null) { DeliveryLocation = new DeliveryLocation(); } if (Classification == null) { Classification = new ClassificationCPVOptional(); } }
public BaseDraftItem(IDraftItem item) { StringId = item.StringId; Description = item.Description; DescriptionEn = item.DescriptionEn; Quantity = item.Quantity; DeliveryDate = item.DeliveryDate; DeliveryAddress = item.DeliveryAddress; DeliveryLocation = item.DeliveryLocation; Unit = item.Unit; }
public BaseItem(IDraftItem item) : base(item) { }
public ItemDTO(IDraftItem item) : base(item) { }