数据类中的调用方法 [英] Call method in data class

查看:66
本文介绍了数据类中的调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[BrowsableAttribute(false)]
[BindableAttribute(false)]
public override string Text { get; set; }

推荐答案

您需要重新设计您的应用程序。

DAL - 创建与数据库的连接启动并处理与数据库的所有交互。



BLL - 基本上反映了IU的需求。例如,您应该有一个处理案例功能的类。如果你想创建一个新案例,它应该...

清除所有当前内容(包括被查看的案例)

填充新的所有默认值case

等待用户输入信息(数据库中没有任何内容)



当用户保存案例然后你验证了内容并将其写入数据库。
You need to redesign your application.
DAL - creates a connection to the database on startup and handles all interaction to the database.

BLL - basically reflects the IU needs. For example you should have a class that handles the case functionality. When you want to create a new case it should...
clear down all the current content (incase the was a viewed case)
populated all the defaults for a new case
wait for the user to input the information (nothing in the database yet)

When the user saves the case THEN you validate the content and write it to the database.


将属性添加到我的UI,从那里使用它。
added property to my UI, used it from there.


这篇关于数据类中的调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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