protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity) { switch(propertyName) { case "Poll": this.Poll = (PollEntity)entity; break; case "PollAnswerLocalizations": this.PollAnswerLocalizations.Add((PollAnswerLocalizationEntity)entity); break; default: this.OnSetRelatedEntityProperty(propertyName, entity); break; } }