如何将Winforms应用程序转换为MVC Web API [英] How can I convert a Winforms Application to a MVC Web API

查看:164
本文介绍了如何将Winforms应用程序转换为MVC Web API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个winform应用程序,包含表单和cs文件。 SQL Server DB通过数据集表适配器连接到代码。我需要将这个winform应用程序转换为webApi。

I have a winform application consists of forms and cs files. SQL server DB connected to the code via dataset table adapters. I need to convert this winform application to a webApi.

推荐答案

没有转换,不是因为这很难或不可能,而是因为没有这样的概念,这意味着一些未定义的东西。这是因为这些是不同的应用类型,其性质不同,没有一对一的对应关系。在实践中,这意味着您必须定义新应用程序应该做什么;它不能像你的原始应用程序那样做任何事情。



如果你打算写一个新的MVC应用程序,那就去做吧,如果你遇到问题,请多多询问具体问题,我们很乐意帮助你。



-SA
There is no "convert", not because this is difficult or impossible, but because there is no such notion, it means something undefined. This is because these are different application types, different in their nature, without one-to-one correspondence. In practice, it means that you have to define what exactly your new application should do; it cannot do anything exactly as your original application does.

If you are going to write a new MVC application, do it, and, if you face problems, ask more specific questions, than we will gladly try to help you.

—SA


这篇关于如何将Winforms应用程序转换为MVC Web API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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