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)); }
public override StorageQueryResult <T> ExecuteQuery(Expression expression) { var translator = new TableStorageQueryTranslator <T>(EntityDefinition); var toExecute = translator.Translate(expression); return(ExecuteQuery(toExecute)); }
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); }