通过Metro应用程序查询SQL表 [英] Querying SQL Table via Metro app

查看:87
本文介绍了通过Metro应用程序查询SQL表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的要求:
我想查询项目的日志表每隔15分钟一个数据库并从那里将信息拉到Win8 Live磁贴上。


由于Win8 Metro应用程序不会一直运行,如何编写代码以便每隔15分钟在应用程序中查询数据库表?

解决方案

使用时间触发器的后台任务在唤醒魔法之间的最小间隔为15分钟。 这对你的场景来说听起来很完美。




http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel .background.backgroundtaskbuilder.aspx

I have a simple requirement: I want to query the log table of my project in a database every 15 mins and pull the info from there to a Win8 Live tile.

Since the Win8 Metro app will not be running always, how can I write the code to query the Database table within the app every 15 mins?

解决方案

Background tasks using a time trigger has a 15 minute minimum interval between waking up to do magic.  It sounds perfect for your scenario.

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.applicationmodel.background.backgroundtaskbuilder.aspx


这篇关于通过Metro应用程序查询SQL表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆