public void AddAttribute(Attribute attribute) { attribute.ParentEntity = this; //make sure both live in the same model attribute.SchemaModel = SchemaModel; }