Hi All,
I have a dot net nuke application. I want to add business data sources. That is I want to have strongly typed datasets. For that I added 2 classes into my application. Class Merchant
Public
Private m_products As List(Of Product)
Public Sub New()
m_products = New List(Of Product)()
m_products.Add(New Product("Pen", 25))
m_products.Add(New Product("Pencil", 30))
m_products.Add(New Product("Notebook", 15))
End Sub
Public Function GetProducts() As List(Of Product)
Return m_products
End Function Class
End
Public Class Product
Private m_name As String
Private m_price As Integer
Public Sub New(ByVal name As String, ByVal price As Integer)
m_name = name
m_price = price
End Sub
Public ReadOnly Property Name() As String
Get
Return m_name
End Get
End Property
Public ReadOnly Property Price() As Integer
Get
Return m_price
End Get
End Property
End Classs
Can somebody please help me. After doing this I still don't see the datasources.
Thanks