Click here to Skip to main content
15,887,334 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
C#
 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)
C#
  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)
C#
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)

C#
       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.
Posted
Updated 11-Dec-13 22:38pm
v2
Comments
[no name] 12-Dec-13 4:31am    
I want to known

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900