コード例 #1
0
 public virtual TEntity GetById(params object[] keys)
 {
     return(EfDataProviderSpecificMethodsProvider.ApplyWhereByKeys(GetAll(), keys)
            .Single());
 }
コード例 #2
0
 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));
 }