Working on a simple form. At least I thought. Need to capture payments for an accounting system and I'm trying to use link for the first time. Following "Linq in Action" to help me.
1. I added my Linq to SQL class (easy enough)
2. Added the table I needed to the dbml (easy enough)
I go to write code from the examples I see and my grid is totally empty.
'Get Data from database
Dim db As New PurchaseOrderDataContext
Dim query = From aPO In db.PurchaseOrders
'Set results to Grid
Me.dgPayments.DataSource = query
I haven't gotten to the ability to add debits and credits via LINQ yet. Any idea why I'm not seeing any data?