既然Silverlight 4可以读取本地计算机上的文件,那么它可以访问SDF文件吗?
我在一些 SL 文献中看到 SL4(可能还有旧版本)允许在本地计算机上访问文件。那么,是否可以在客户端计算机上安装 SQL Server Compact,并拥有 Silverlight 应用程序可以读取的 SDF 文件?
或者我猜想,让 Silverlight 应用程序与正在读取 SDF 文件的 .Net DLL 进行通信,因为 Silverlight 应该更多地位于框架的“视图”一侧。
编辑 不直接使用 WPF 或 Windows 客户端的原因是,我们有一个用例,我们需要一个可以在有限时间内离线的 Web 应用程序。例如,在巴西农村的某个地方旅行,那里可能没有互联网连接(或连接不良)。在这种情况下,我们希望他们使用相同的应用程序并进行 OOB 并在本地运行一段时间,然后在合适的时间重新同步。他们重新联系。
I see in some of the SL literature that SL4 (and possibly older versions) allow for file access on the local machine. Would it be possible, then, to install SQL Server Compact on the client machine, and have an SDF file that the Silverlight app could read?
Or I guess, rather, have the Silverlight app talk to a .Net DLL that's reading the SDF file, since Silverlight should be more on the "view" side of the framework.
Edit
The reason for not going straight WPF or Windows client is that we have a use case where we want a web app that can go offline for a limited time. For example, traveling somewhere in rural Brazil that might not have internet connectivity (or bad connectivity.) In that case, we'd like them to take the same app and go OOB and run locally for a time, and then re-sync when they reconnect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它可以与数据库对话,这是这篇博文中的第 10 项功能: 尖端技术:Silverlight 4 Com 功能。
也就是说,您必须在客户端上安装一些东西。因此,正如 Paul Sasik 在评论中所说,创建一个 WPF 桌面应用程序会更容易。
我想这很大程度上取决于微软未来的战略。也许 Silverlight将成为桌面上的首选客户端技术。
Yap, it can talk to databases, it's feature # 10 in this blog post: Cutting Edge: Silverlight 4 Com Features.
That said, you will have to install something on the client. Thus it would be easier to create a WPF desktop app altogether, as Paul Sasik said in his comment.
I guess a lot depends on the future strategies of Microsoft. Maybe Silverlight will become the preferred client technology also for the desktop.