예제 #1
0
        public override async Task <StorageQueryResult <T> > ExecuteQueryAsync(Expression expression)
        {
            var translator = new TableStorageQueryTranslator <T>(EntityDefinition);
            var toExecute  = translator.Translate(expression);

            return(await ExecuteQueryAsync(toExecute).ConfigureAwait(false));
        }
예제 #2
0
        public override StorageQueryResult <T> ExecuteQuery(Expression expression)
        {
            var translator = new TableStorageQueryTranslator <T>(EntityDefinition);
            var toExecute  = translator.Translate(expression);

            return(ExecuteQuery(toExecute));
        }
예제 #3
0
        private async Task <T> GetById(string entityId)
        {
            var translator = new TableStorageQueryTranslator <T>(EntityDefinition);

            var query  = translator.QueryGetById(entityId);
            var result = (await ExecuteQueryAsync(query).ConfigureAwait(false)).Records.FirstOrDefault();

            return(result);
        }