我应该使用哪种数据库和语言? [英] Which Database and Language I should use?

查看:84
本文介绍了我应该使用哪种数据库和语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SQL Server数据库在C#.Net中开发一个带数据库的软件。现在我希望我从在线网站和Android应用程序访问我的数据。

您有什么想法,我应该使用哪种数据库和语言一次从3个不同的平台访问。

例如:我将记录放在桌面PC的数据库中,然后我想从我的Android应用程序和我的网站同时获取该记录。



对不好的英语抱歉。

I'm developing a software with database in C#.Net with SQL Server Database. Now i want my to access my data from online website, and android app.
Have you any idea, which database and language i should use to access from 3 different platforms at a time.
For example: I put record in my database from desktop PC, then i want that record from my android app, and from my website at the same time.

Advance sorry for bad english.

推荐答案

一种方法是通过REST,Representational State Transfer。

这种方法与平台无关,并建立在HTTP协议之上。

学习REST:教程 [ ^ ]



你实现服务器端的一项服务,然后您使客户适应协议。

您可以轻松找到如何在不同环境中实现客户端的示例。



这是解决问题的方法之一。
Well one way to do it is via REST, Representational State Transfer.
This approach is platform independent and built upon the HTTP protocol.
Learn REST: A Tutorial[^]

You implement one service on the server side, and then you adapt your clients to the protocol.
You can easily find examples for how to implement the client side for different environments.

This is one way out of many to solve your problem.


最简单的解决方案是为所有数据库操作托管webservice / wcf应用程序并使用它所有其他申请。



参考:

您的第一个C#Web服务 [ ^ ]

了解Windows Communication Foundation(WCF)的初学者教程 [ ^ ]



希望,它有帮助:)
The simplest solution is to host a webservice/wcf application for all the database oporations and consume it with all other applications.

Reference:
Your first C# Web Service[^]
A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)[^]

Hope, it helps :)


如果您想在3个设备中使用您的应用程序,如移动应用程序,台式机,笔记本电脑......



据我所知,只有一个选项,即使用服务



它以两种方式发送数据;

1)XML格式

2)JSON格式




以上2,JSON格式是最好的选择。



在我们的软件环境中,我们可以用不同的方式呼叫服务。



1)WebService
2)WCF服务

3)Web API服务



在实施您的要求之前,首先需要收集要求然后通过自己分析并与项目负责人讨论,并了解您将采用哪种方式得出结论。
If you want to use your application in 3 devices like Mobile App, Desktop, Laptop..

As of my knowledge there is only one option i.e. using services.

It's send data in 2 ways;
1) XML format
2) JSON format


out of the above 2, JSON format is the best option.

In our software environment we can call services in different ways.

1) WebService
2) WCF Services
3) Web API Services

Before implement your requirement, first you need to gather requirements then analyse by your self and discuss with your project lead and come to know one conclusion which way you are going to work.


这篇关于我应该使用哪种数据库和语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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