开发者

Since Silverlight 4 can read files on local machine, could it access a SDF file?

开发者 https://www.devze.com 2022-12-18 04:30 出处:网络
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, an

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 cli开发者_JAVA百科ent 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消