Exemplo n.º 1
0
        public async Task <int> EfficientDynamoDbBenchmark()
        {
            var result = await _efficientDbContext.Query <MixedEntity>()
                         .WithKeyExpression(Condition <MixedEntity> .On(x => x.Pk).EqualTo("test"))
                         .ToListAsync().ConfigureAwait(false);

            return(result.Count);
        }
Exemplo n.º 2
0
 protected override async Task <IReadOnlyCollection <object> > QueryAsync <T>(string pk)
 {
     return(await _context.Query <T>()
            .WithKeyExpression(Condition <T> .On(x => x.Pk).EqualTo("test"))
            .ToListAsync().ConfigureAwait(false));
 }