namespace Allors.Repository
{
    using System;

    using Attributes;

    #region Allors
    [Id("9d0065b8-2760-4ec5-928a-9ebd128bbfdd")]
    #endregion
    public partial class PostalCode : CountryBound, AccessControlledObject, GeographicBoundary 
    {
        #region inherited properties
        public Country Country { get; set; }

        public Permission[] DeniedPermissions { get; set; }

        public SecurityToken[] SecurityTokens { get; set; }

        public string Abbreviation { get; set; }

        public decimal Latitude { get; set; }

        public decimal Longitude { get; set; }

        public Guid UniqueId { get; set; }

        #endregion

        #region Allors
        [Id("20267bfe-b651-4ed7-bd22-f4300022e39c")]
        [AssociationId("48a9b292-452c-48be-9cb3-2b20f23a510e")]
        [RoleId("12e48856-88e9-4e97-aa32-fd532d2f050d")]
        #endregion
        [Required]
        [Size(256)]

        public string Code { get; set; }

        #region inherited methods


        public void OnBuild(){}

        public void OnPostBuild(){}

        public void OnPreDerive(){}

        public void OnDerive(){}

        public void OnPostDerive(){}





        #endregion
    }
}