多个潜在数据输出目的地的最佳方法 [英] Best approach for multiple potential data output destinations
问题描述
我正在构建一个WPF应用程序,它将包含我需要存储的一些数据。 基本应用程序不会提供此信息的云存储,并具有更多基本功能。 我将其设想为用户的
计算机上的基本CSV或本地内容。 如果您为应用程序付费,则信息将存储在SQL Server数据库中的云中以及其他功能中。 我想限制重新编码所有内容,所以我想知道EF是否可行。 我正在寻找
是一种根据应用程序版本轻松更改内容的方法。 EF是可行的方式,还是C#接口或基类? 肯定有一些东西可以让我对我更容易。
I'm building a WPF application that will have some data that I need to store. The basic application will not offer cloud storage of this information and have more basic functionality. I envision it as basic CSVs or something locally on the user's machine. If you pay for the application the information will be stored in the cloud in a SQL Server database and additional functionality. I want to limit re-coding everything, so I'm wondering if EF is the way to go. What I'm looking for is a way to somewhat easily change things based on the application version. Is EF the way to go, or a C# interface or base class? Surely there's something to make this a little easier on me.
谢谢!
推荐答案
Hi Matt S - ,
Hi Matt S-,
>> 我想限制重新编码所有内容,所以我想知道EF是否可行。 我正在寻找的是一种根据应用程序版本轻松更改内容的方法。 EF是可行的方式,还是C#界面或基础
类?
根据您的描述,您似乎希望将某些数据存储在云SQL服务器数据库中,如果是这样,实体框架支持该要求。欲了解更多信息,请参阅:
According to your description, it seems that you want to store some data in a cloud SQL server database, if so, entity framework support the requirement. for more information, please refer to:
https://msdn.microsoft.com/en-us/library/jj556244(v = vs.113).aspx
祝你好运,
Cole Wu
这篇关于多个潜在数据输出目的地的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!