如何在C#窗口应用程序中使用MVC(Class)插入,更新. [英] how to insert ,update using MVC(Class) in C# window application.

查看:89
本文介绍了如何在C#窗口应用程序中使用MVC(Class)插入,更新.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个c#窗口应用程序.
我想要一个标准函数来插入,更新和删除数据库上的数据,我可以将其用于任何窗口形式,任何表或表中的任何字段.
(这意味着我不想每次以窗口形式插入/更新表时都指定表或字段名称.)

我可以为此目的使用课堂吗?

如果是的话,请帮我提供代码.

我认为应该通过 3层架构完成,但是我无法实现它.

我说的对吗?

Hi,

I''m developing a c# window application.
I want a standard function to insert, update and delete data on database which I can use for any window form, for any table or for any fields in table.
(That means I don''t want to specify table or field name for every time inserting/updating tables in window form.)

Can I use class for that purpose?

If yes please help me with the code of it.

I think it should be done through 3 tier architecture, but I''m unable to implement it.

Am I Right?

Thanks In Advance!

推荐答案

hi ...
mvc用于Web应用程序.基于服务器客户端概念..
希望以下链接可以帮助您...
面向初学者的ASP.NET MVC(模型视图控制器)体系结构 [
hi...
mvc is for web application..Which is based on server client concept..
hope the following link may help you...
Understanding ASP.NET MVC (Model View Controller) Architecture for Beginners[^]


这篇关于如何在C#窗口应用程序中使用MVC(Class)插入,更新.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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