多层应用程序(N层编程)

编程入门 行业动态 更新时间:2024-10-23 20:25:26
本文介绍了多层应用程序(N层编程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个可以向数据库添加信息的程序,我想将此程序转换为多层应用程序,我该怎么办? 这是我的代码:

I have a program that can add information to the databaseand i want to convert this program to Multilayer Applications what can i do? this my code:

userEntities am = new userEntities(); Table_1 ta = new Table_1(); ta.ID = Convert.ToInt32(textBox6.Text); ta.name = textBox9.Text; ta.last_name = textBox8.Text; ta.phon_number = maskedTextBox2.Text; ta.adress = textBox7.Text; am.AddToTable_1(ta); am.SaveChanges(); showdata();

帮我开坦克

help me tanks

推荐答案

请参阅 en.wikipedia /wiki/Multitier_architecture [^ ]. 作为起点: 1.确定代码中的图层. 2.重新排列,使一层仅取决于下一层. 干杯 安迪 See en.wikipedia/wiki/Multitier_architecture[^]. As a starting point: 1. Identify what your layers are in your code. 2. Re-arrange such that one layer depends on the next layer only. Cheers Andi

更多推荐

多层应用程序(N层编程)

本文发布于:2023-11-15 23:46:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599042.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多层   应用程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!