如何在mvc winform中将文本框值与db进行比较 [英] How to compare text box value with db in mvc winform

查看:71
本文介绍了如何在mvc winform中将文本框值与db进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试开发一个连接数据库并检索数据的Windows应用程序。我想知道如何比较文本框,标签,列表框或组合框值与相关数据库。它如何在模型,控制器和视图中工作?

I try to develop a windows application which connect to database and retrieve data. I want to know how to compare text box,label ,list box or combo box value with relavant data base. How it will work in model,controller and view?

推荐答案

MVC特定于web。不确定你在这里尝试做什么。如果要为Windows应用程序实现MVC模式,则Model DAL层和View应该是您的From。如果你想与模式相关,你的表格事件应该是你的控制。



问候,

Maheswaran.S
MVC is specific to web. Not sure what you are trying you do here. If you want to implement the MVC pattern for windows application then Model Should DAL layer and View should be your From. Your form events should be your controlled if you want to relate to the pattern.

Regards,
Maheswaran.S


这篇关于如何在mvc winform中将文本框值与db进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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