My project is composed to four layer.First Layer,Second Layer,Third Layer and Fourth layer.Eg.I will show it.I use these layers by making reference.First layer reference to second layer and Second layer reference to thrid layer .And then,third layer refrence to fouth layer(User Interface Layer).
First Layer
Public Class FrmSample
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
Dim m_Business as New Modal
m_Business.ID=txt.Text.Trim
Dim Dt As New DataTable=BusinessLogic.Business.Insert(m_Business)
End Sub
End Class
Second Layer(BusinessLogic)
Public Class BusinessLogic
Public Shared Function Insert(ByVal oBusinessType As Modal.BusinessType) As Boolean
Dim mydt As New DataAccess.BusinessType
Return DataAccess.BusinessType.Insert(oBusinessType)
Return False
End Function
End Class
Third Layer(DataAcess Layer)
Public Class BusinessType
Public Shared Function Insert(ByVal oBusinessType As Modal.BusinessType) As Boolean
Dim arr(3) As Object
arr(0) = SqlHelper.Auto_GenerateNoBusiness()
Dim iID As Integer = SqlHelper.Insert(arr, "BTNo","")
If iID <> 0 Then
Return True
End If
Return False
End Function
Fourth layer(modal layer)
Public Class BusinessType
#Region " Constructor And Destructor ">
Public Sub BusinessType()
ID=0
End Sub
Public Sub BusinessType(ByVal BTID As Int64)
m_BTID = BTID
End Sub
Public Property BTID() As Integer
Get
Return Me.m_BTID
End Get
Set(ByVal value As Integer)
Me.m_BTID = value
End Set
End Property
End Class
.......................................................................................
this is sample Project(Not Really)
I am using vb.Net 2012
one day,when i trace the project the following problem occur
the problem is I can go First layer,but Business layer not to go .the break point have reached
at "00000034 nop"
How can i solve?Please,answer me.