Xamarin.Forms应用的SQL服务器数据库选项 [英] Xamarin.Forms app SQL-server database options

查看:1910
本文介绍了Xamarin.Forms应用的SQL服务器数据库选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习Xamarin.Forms与VisualStudio2015建立跨平台的移动应用程序的目标。我有一个完全可以接受的面向公众的网站,但本机应用程序(S)是老板认为我们需要什么。

I've been studying Xamarin.Forms with goal of building cross-platform mobile app in VisualStudio2015. I've got a perfectly acceptable public facing web site but native app(s) are what the boss thinks we need.

托管于IIS 7.5当前Web应用程序使用数据库访问一个片premises SQL Server 2008实例单独的项目(DLL)。这VStudio项目执行使用System.Data.SqlClient的各种存储过程暴露域对象的调用ASP.NET web表单。

The current web app hosted on IIS 7.5 uses a separate project(DLL) for database access to an on-premises SQL Server 2008 instance. This VStudio project exposes domain objects to the calling ASP.NET webforms by executing various stored procedures using System.Data.SqlClient.

我知道构建移动本机应用程序本身Xamarin.Forms是挑战的一部分,但我的要求在这里澄清关于如何处理数据库的要求:

I know building the mobile native app itself with Xamarin.Forms is one part of the challenge but I am asking here for clarification about how to approach the database requirements:

我是否需要建立某种形式的Web服务,提供由我目前的网站所需要的相同的CRUD功能?

Xamarin文档列出了几个选项,使用Web服务而更多的我搜索和阅读有关数据访问我的结论是某种类型的可调用的Web服务将需要为我的最终的本地移动应用。

Xamarin documentation lists several options for consuming web services and the more I search and read about data access I conclude that a callable web service of some type is going to be required for my eventual native mobile app.

这是假设是正确的?

推荐答案

是的。你一般都希望您的移动应用程序(或任何远程客户端)和你的数据库服务器之间的Web服务层经纪请求。如果你已经在由您的网站使用的单独库中的全部CRUD操作,那么Web服务也只是另一套是依赖于相同的CRUD库端点。

Yes. You generally want a webservice layer brokering requests between your mobile app (or any remote client) and your DB server. If you already have all your crud operations in a separate library that is utilized by your website, then a webservice would just be another set of endpoints that rely on the same CRUD library.

这篇关于Xamarin.Forms应用的SQL服务器数据库选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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