コード例 #1
0
        public async Task <IEnumerable <T> > ReadAsync(Expression <Func <T, bool> > filterExpression = null)
        {
            if (filterExpression == null)
            {
                filterExpression = entity => true;
            }

            await EnsureDbAndTableExistOrCreateAsync();

            IAsyncEnumerator <T> enumerable = Connection.RunAsync(Table.Filter(filterExpression));

            return(await enumerable.FlushAsync());
        }