async Task <IEnumerable <IEntity> > IRepository.GetAllRelatedAsync(IRelated related, IQuery query) { return((await GetAllRelatedAsync(related, TypedQuery <TEntity> .Convert(query)))?.Cast <IEntity>() ?? Enumerable.Empty <IEntity>()); }
async Task <IEnumerable <IEntity> > IRepository.GetAllAsync(IParent?parent, IQuery query) { return((await GetAllAsync(parent, TypedQuery <TEntity> .Convert(query))).Cast <IEntity>()); }