public virtual TEntity GetById(params object[] keys) { return(EfDataProviderSpecificMethodsProvider.ApplyWhereByKeys(GetAll(), keys) .Single()); }
public virtual async Task <TEntity> GetByIdAsync(params object[] keys) { return(await EfDataProviderSpecificMethodsProvider.ApplyWhereByKeys((await GetAllAsync(CancellationToken.None).ConfigureAwait(false)), keys) .SingleAsync(CancellationToken.None).ConfigureAwait(false)); }