应用程序的典型结构是三层体系结构,即数据库层、业务层和表现层。其中数据库层一般选用Access、SQL Server或Oracle等数
据库,业务层是包含业务逻辑的类库(即一组DLL),表现层可以是窗体应用程序或网站的形式示。

这个个通讯录程序很简单,但反映了应用程序编写的一般思路。
1.打开Access数据库,存其中创建一个名称为Person的表。

2.VS创建一个解决方案,添加一个Person类
'人员类
Public Class Person
Dim _id As String
'编号
Public Property id() As String
Get
Return _id
End Get
Set(ByVal value As String)
_id = value
End Set
End Property
'姓名
Dim _name As String
Public Property Name() As String
Get
Return _name
End Get
Set(ByVal value As String)
_name = value
End Set
End Property
'电话
Dim _phone As String
Public Property Phone() As String
Get
Return _phone
End Get
Set(ByVal value As String)
_phone = value
End Set
End Property
'手机
Dim _mobile As String
Public Property Mobile() As String
Get
Return _mobile
End Get
Set(ByVal value As String)
_mobile = value
End Set
End Property
'地址
Dim _address As String

该博客介绍了一个简单的通讯录程序的实现过程,包括在Access中创建Person表,使用VS创建解决方案并添加Person类,以及设计窗体。程序遵循三层体系结构,涉及数据库、业务逻辑和表现层。
最低0.47元/天 解锁文章
2724

被折叠的 条评论
为什么被折叠?



