andrew1980
New member
- Joined
- Oct 18, 2007
- Messages
- 2
- Programming Experience
- 3-5
I've got a solution file containing 2 class libraries as shown below.
TestSystem
|-------Business Logic { JobLogic.vb }
|
|-------DataAccess { JobAccess.vb }
I want to be able to reference JobAccess class from the JobLogic class without having to qualify the full namespace. I've added an import statement, but I still need to qualify the class name when creating an object. I want to be able to simply write Dim x as JobAccess instead of just Dim x As DataAccess.JobAccess. Here is the code:
Imports DataAccess.JobAccess
Public Class JobLogic
Public Function GetFullList() As DataSet
Dim ja As JobAccess = New JobAccess
Return ja.GetList()
End Function
End Class
I'd like to put both class libraries in a single namespace, but I don't know how to achieve this in VS.
Any help would be much appreciated.
cheers.
TestSystem
|-------Business Logic { JobLogic.vb }
|
|-------DataAccess { JobAccess.vb }
I want to be able to reference JobAccess class from the JobLogic class without having to qualify the full namespace. I've added an import statement, but I still need to qualify the class name when creating an object. I want to be able to simply write Dim x as JobAccess instead of just Dim x As DataAccess.JobAccess. Here is the code:
Imports DataAccess.JobAccess
Public Class JobLogic
Public Function GetFullList() As DataSet
Dim ja As JobAccess = New JobAccess
Return ja.GetList()
End Function
End Class
I'd like to put both class libraries in a single namespace, but I don't know how to achieve this in VS.
Any help would be much appreciated.
cheers.