This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or in开发者_如何转开发clude a minimal example in the question itself.
Closed 8 years ago.
Improve this questionI have zero knowledge, but I can't find a hello world program for using LINQ to read a database table. How do I write a hello world and working program?
I would highly recommend that you check out Scott Guthrie's blog articles about LINQ to SQL:
Using LINQ to SQL (Part 1)
ScottGu wrote a blog post about LINQ to SQL that you might like to read.
Download and use LinqPad. Self-explanatory and self-sufficient learning device.
Download here>>>
You will not have one but a LOT of working examples.
精彩评论