【发布时间】:2014-09-19 00:07:26
【问题描述】:
私有异步任务 RunningData() {
// 我想在 windows phone 中使用 azure storage 获取两个日期之间的数据。
var table = MobileService.GetTable<Tracing>();
string date1 = "13/09/2014 12:58:42";
string date2 = "12/09/2014 16:26:55";
var items = await table
.Where(Tracing => Tracing.Date == date1 || Tracing.Date==date2 )
.Take(PageSize)
.Skip(this.currentIndex)
.IncludeTotalCount()
.ToListAsync();
this.lstItems.ItemsSource = items;
int totalCount = (int)((ITotalCountProvider)items).TotalCount;
this.lblStatus.Text = string.Format("Showing items from position {0} to {1} (of {2})", currentIndex, currentIndex + PageSize - 1, totalCount);
}
【问题讨论】:
-
与mysql相关的这里我想知道在.netframework中怎么做
-
该问题的选定答案具有可在 LINQ 查询中使用的点网扩展方法。这不是 mysql。
-
那很好,但我想要完全在微软天蓝色存储中。
-
您的问题并非特定于 Azure 存储,您是在问一个 LINQ 问题——@Jonathan 发布的问题已解决了这个问题。
标签: c# azure windows-phone-8