internal object[] GetIds() { if (assocColl != null) { return(assocColl.GetEntityIds()); } else { PropertyInfo idGetter = GetIdGetter(); return(GetCollectionAsObject().Select(x => idGetter.GetValue(x)).ToArray()); } }