Addressing Me.Products in an SQL Database
===

How do I handle ***Me.Products***?  I am using Northwind.mdf database in table "Products". The table was drug onto a dbml file.

***Me.Products*** needs to be defined with a statement or a file to make it usable.  Maybe the dim statement is incorrect?


    Partial Public Class NorthwindDataContext
        Dim Products As Object
        Public Function GetProductsByCategory(ByVal id1 As Integer) As IEnumerable(Of Product)
            Return From p In Me.Products _
                   Where p.ProductID = id1 _
                   Select p
        End Function
    End Class