private void PersistExistingConfig()
        {
            using (var context = new PropertyContext())
            {
                foreach (
                    var prop in typeof (IExampleTypedConfig).GetProperties(BindingFlags.Instance | BindingFlags.Public))
                {
                    var p = context.DomainEntityAttachedProperties.Add(new AttachedProperty
                    {
                        EntityType = typeof (IExampleTypedConfig).FullName,
                        Name = prop.Name,
                        Type = prop.PropertyType.FullName
                    });

                    context.SaveChanges();

                    context.DomainEntityAttachedPropertyValuesLong.Add(new AttachedPropertyValueLong
                    {
                        EntityId = EntityId,
                        PropertyId = p.Id,
                        Value = prop.GetValue(_existingConfig).ToString()
                    });

                    context.SaveChanges();
                }
            }
        }