示例#1
0
        public async Task <List <T> > GetAsync <T>(ODataQuery query)
        {
            var tableQuery = new TableQuery();

            tableQuery.FilterString = query.Filter;

            var results = await QueryAsync(tableQuery);

            return(AzureTableProvider.Convert <T>(results.ToArray()));
        }
示例#2
0
        private void LoadFromAzureTableStorage <T>() where T : class
        {
            var context = GetTableContext <T>();
            var data    = context.All().ToArray();

            var results = AzureTableProvider.Convert <T>(data);

            EntityConstructor.Process(results.ToArray());

            //DataStore.Add(results.ToArray());
            Publish(new DataLoaded <T>(results));
        }