context: namespace Allors.Repository
  {
      using System;
      using Attributes;
  
      #region Allors
      [Id("066bf242-2710-4a68-8ff6-ce4d7d88a04a")]
      #endregion
      public partial interface Quote : Transitional, Printable, Auditable, Commentable
      {
          #region ObjectStates
          #region QuoteState
          #region Allors
          [Id("B1792FCE-33EF-4A03-BCB7-92E839A55B2C")]
          [AssociationId("2FCD7B16-863B-4A41-9C2C-B7E45E74799A")]
          [RoleId("3E5206B4-40F2-4939-BA95-2D8D089CFDF5")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Derived]
          QuoteState PreviousQuoteState { get; set; }
  
          #region Allors
          [Id("C1B9AD76-9773-4A52-AADB-ED3E7222C89B")]
          [AssociationId("9945B2C0-06CC-4410-8861-05A54DDB8728")]
          [RoleId("9BEA275E-F1A0-4023-877E-EF67A150C3DF")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Derived]
          QuoteState LastQuoteState { get; set; }
  
          #region Allors
          [Id("2A4AADE6-B3F0-436B-BA9E-5D0ECB958077")]
          [AssociationId("62A27DA3-372A-4296-B7C6-0BD482A7CB31")]
          [RoleId("84F136C7-B146-4D20-A4D2-797740E60291")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Workspace]
          QuoteState QuoteState { get; set; }
          #endregion
          #endregion
  
          #region Allors
          [Id("AFB30FBE-9E93-4EBD-B8D3-5C5B231D70E1")]
          [AssociationId("520CF705-3E9C-4845-816C-F8DD17A4534B")]
          [RoleId("7B78FA1B-EAEA-419D-87E8-F0A746DBEA18")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Required]
          [Workspace]
          InternalOrganisation Issuer { get; set; }
  
          #region Allors
          [Id("3B913CC6-C627-4F16-ACF5-98EC97CE5FDA")]
          [AssociationId("7CD50B18-3C4A-4A81-B6AA-9CE8BC43C0DA")]
          [RoleId("3A53DEDC-0877-44FA-89E3-1212EAB4FF36")]
          #endregion
          [Workspace]
          [Size(-1)]
          string InternalComment { get; set; }
  
          #region Allors
          [Id("D566DD5B-BF58-45A6-A68F-FD7D2652FB4D")]
          [AssociationId("8F0A31C1-1B2A-4531-84BA-7636F4D0B9DF")]
          [RoleId("00EF6AB3-E075-45F5-A839-96576E3546AB")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.OneToOne)]
          [Workspace]
          DateTime RequiredResponseDate { get; set; }
  
          #region Allors
          [Id("033df6dd-fdf7-44e4-84ca-5c7e100cb3f5")]
          [AssociationId("4b19f443-0d27-447d-8186-e5361a094460")]
          [RoleId("fa17ef86-c074-414e-b223-b62522d68280")]
          #endregion
          [Workspace]
          DateTime ValidFromDate { get; set; }
  
          #region Allors
          [Id("05e3454a-0a7a-488d-b4b1-f0fd41392ddf")]
          [AssociationId("ca3f0d26-9ead-4691-8f7f-f79272065251")]
          [RoleId("92e46228-ad44-4b9b-b727-23159a59bca3")]
          #endregion
          [Multiplicity(Multiplicity.ManyToMany)]
          [Indexed]
          [Workspace]
          QuoteTerm[] QuoteTerms { get; set; }
  
          #region Allors
          [Id("2140e106-2ef3-427a-be94-458c2b8e154d")]
          [AssociationId("9d81ada4-a4f3-44bb-9098-bc1a3e61de19")]
          [RoleId("60581583-2536-4b09-acae-f0f877169dae")]
          #endregion
          [Workspace]
          DateTime ValidThroughDate { get; set; }
  
          #region Allors
          [Id("3da51ccc-24b9-4b03-9218-7da06492224d")]
          [AssociationId("602c70c9-ddc4-4cf5-a79f-0abcc0beba15")]
          [RoleId("d4d93ad0-c59d-40e7-a82c-4fb1e54a85f2")]
          #endregion
          [Size(-1)]
          [Workspace]
          string Description { get; set; }
  
          #region Allors
          [Id("9119c598-cd98-43da-bfdf-1e6573112c9e")]
          [AssociationId("d48cd46d-889b-4e2d-a6d6-ee26f30fb3e5")]
          [RoleId("56f5d5ee-1ab5-48f2-a413-7b80dd2c283e")]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Indexed]
          [Required]
          [Workspace]
          Party Receiver { get; set; }
  
          #region Allors
          [Id("A1C248DF-7F2A-4622-9052-9106C67B1D71")]
          [AssociationId("ED908492-D8C8-40E8-853D-6F9602B1D646")]
          [RoleId("69D3F384-64C8-4D6C-AEA7-CCDA7CB51DCF")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Required]
          [Workspace]
          ContactMechanism FullfillContactMechanism { get; set; }
  
          #region Allors
          [Id("b5bcf357-ef14-424d-ad8d-01a8e3ff478c")]
          [AssociationId("b9338369-9081-4fa7-91c2-140a46ea7d27")]
          [RoleId("984b073d-0213-4539-8d3c-a35a81a71bd5")]
          #endregion
          [Required]
          [Derived]
          [Precision(19)]
          [Scale(2)]
          [Workspace]
          decimal Price { get; set; }
  
          #region Allors
          [Id("BA16DE57-19A1-40BC-AF3C-99690EB5ECAB")]
          [AssociationId("B1D552EE-4967-4651-95C9-C9A9A846DE35")]
          [RoleId("E6732FB3-5BD9-4AB1-B5B9-394D643A47E0")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Workspace]
          Currency Currency { get; set; }
  
          #region Allors
          [Id("d7dc81e8-76e7-4c68-9843-a2aaf8293510")]
          [AssociationId("6fbc80d1-e72b-4484-a9b1-e606f15d2435")]
          [RoleId("219cb27f-20b5-48b3-9d89-4b119798b092")]
          #endregion
          [Workspace]
          [Required]
          DateTime IssueDate { get; set; }
  
          #region Allors
          [Id("e250154a-77c5-4a0b-ae3d-28668a9037d1")]
          [AssociationId("b5ba8cfd-2b16-4a50-89cd-46927d59b97a")]
          [RoleId("f5b6881b-c4d5-42e3-a024-0ae4564cb970")]
          #endregion
          [Multiplicity(Multiplicity.OneToMany)]
          [Indexed]
          [Workspace]
          QuoteItem[] QuoteItems { get; set; }
  
          #region Allors
          [Id("e76cbd73-78b7-4ef8-a24c-9ac0db152f7f")]
          [AssociationId("057ad29f-c245-44b2-8a95-71bd6607830b")]
          [RoleId("218e3a6e-b530-41f7-a60e-7587f8072c8c")]
          #endregion
          [Required]
          [Size(256)]
          [Workspace]
          string QuoteNumber { get; set; }
  
          #region Allors
          [Id("94DE208B-5FF9-45F5-BD35-5BB7D7B33FB7")]
          [AssociationId("10F24038-D3E1-40DC-9D4F-27E738BE7F3D")]
          [RoleId("3D269537-523B-489A-A7DA-008DC8585F60")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.OneToOne)]
          [Workspace]
          Request Request { get; set; }
  
          #region Allors
          [Id("2D6804B9-A745-497A-9F43-FADE6B1B76AB")]
          [AssociationId("542367E1-1CAB-4DB6-9FB3-ECAD8930601F")]
          [RoleId("EDF15A48-DF46-411C-B73A-9B6E9C184932")]
          [Indexed]
          #endregion
          [Multiplicity(Multiplicity.ManyToOne)]
          [Workspace]
  
gt:         Person ContactPerson { get; set; }