public void AddProperty(PropertyDocumentData data) { if (data != null) { if (data.Id == null) { data.GenerateId(); } this.properties.Add(data.Id, data); } }