Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

Maintaining Code and It Uses LINQ

$
0
0
Am I in the right forum? I am enhancing an ASP.NET page, but my question has to do with LINQ and getting data from a table, so I hope so...

I've never written a LINQ statement before but that's how this page gets all its data. This page creates a PDF and I am changing a section of the PDF. The data aren't available in a table yet, so I was going to have a temp routine in the code that made and populated the table, then I can "select" from it, and later that code table will be replaced by a SQL table. The table is very simple, two columns Age and Rate and the ages are "<1 - 20", 21, 22 etc to 65+ and the Rate for now is always $100.00.

How do I learn what LINQ syntax to use against this table? I started googling LINQ and was overwhelmed, or confused, because all I've found so far is examples of using it with lists and arrays, and a high-level (no example) explanation of how it's better then SQL queries.

So my opening question is do you have a good tutorial of how to use it with a very simple table that selects every row? You can anticipate other questions as I proceed... Thanks.

Viewing all articles
Browse latest Browse all 42215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>