In this blog you will find ASP.NET 3.5 articles and some code samples. These code samples are created by me and should be working. Thanks for visiting my blog! Happy Dot Netting

Wednesday, July 2, 2008

Get

Imports Microsoft.VisualBasic
Imports DL_DatasetTableAdapters


Public Class BL_Product


Private _productsAdapter As ProductsTableAdapter = Nothing
Protected ReadOnly Property Adapter() As ProductsTableAdapter
Get
If _productsAdapter Is Nothing Then
_productsAdapter = New ProductsTableAdapter
End If

Return _productsAdapter
End Get
End Property
Public Function GetProducts() As DL_Dataset.ProductsDataTable
Return Adapter.GetData()
End Function

No comments: