Ejemplo n.º 1
0
        private void PopulateCache()
        {
            if (this.person == null)
            {
                this.person = Person.FromIdentity(PersonId);
            }

            if (this.ownerPerson == null)
            {
                this.ownerPerson = Person.FromIdentity(OwnerPersonId);
            }

            if (this.geography == null)
            {
                if (this.person.GeographyId != 0)
                {
                    this.geography = this.person.Geography;
                }
                else
                {
                    this.geography = Geography.Root;
                }
            }
        }