如何以C#-win形式实现Azure脱机同步? [英] How to implement Azure offline sync in C#-win form?

查看:96
本文介绍了如何以C#-win形式实现Azure脱机同步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i want to write a windows form application , and this application is to be connected with azure cloud sql database.


i am looking for offline sync of azure to local sql express store, it means when internet connectivity is not available application will work in offline mode with local store in  sqlexpress and as soon as connectivity is available it will be sync with azure,



So kindly help me with if anyone  have any idea how to implement this, i have googled alot but not reached anywhere to start with

推荐答案

我不确定我们是否会根据您的要求知道如何帮助您



(1)..它不清楚你期望申请做什么 - 你的问题n title表示C#-Win表单,而你的'内容'就像是'桌面应用程序'



(2)Synchronize是一个关于那个的术语有不同的含义 - 有点像'CSV' - 所以描述你想要对数据发生什么



所以,让我们来看看(1)如果你要去设计一个Windows窗体应用程序,你需要做什么?例如



指定Azure数据库和凭证

指定SQLite数据库位置/文件

显示任何错误



(基于此,命令行/控制台应用程序会出现什么问题?)



是该应用程序应该自动运行?或者需要用户输入



如上所述继续进行(2)定义'同步'....你的意思是'做一个完整的副本'从Azure到SQLite - 你的意思是'从Azure更改/添加记录到SQLite'



...你看,它通过写出要求和程序的规范,你开始将其分解为可管理的功能块
Im not sure if we would know how to help you based on your requirements

(1) .. its not clear what you expect the application to do - your question title says C#-Win form, while your 'content' such as it is just says 'desktop application'

(2) Synchronise is a term thats bandied about that has different meaning - a bit like 'CSV' - so describe what you want to happen to the data

So, lets look at (1) if you were going to design a Windows Forms Application, what do you need to do ? For example

Specify Azure Database and Credentials
Specify SQLite Database location/file
Display any errors

(based on this, what would be wrong with a Command-Line/Console Application ?)

Is the application supposed to run Autonomously ? or Needs User Input

And moving on to (2) as I said above, define 'Synchronise' .... do you mean for example 'make a complete copy' from Azure to SQLite - do you mean 'Copy Changed/Added records from Azure to SQLite'

... you see, its by writing out the requirements and the specifications for a program, that you start breaking it down into managable 'chunks' of functionality


这篇关于如何以C#-win形式实现Azure脱机同步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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