Linq to Strong Typed Dataset
I need to troubleshoot a LINQ query against a strong typed dataset that is loaded from a SQL database. I'm new to LinqPad. Are there any examples on how to do this?
Thanks
Bernie
Thanks
Bernie
Comments
Are there any examples to help me get started? I'm having trouble locating any examples of how to use Linqpad.
So, start with the same code that you have in VS.
For filling the tables, my current fill routines are in SQL, but I guess it's a good time to convert them to Linq. Would the SQL calls work in Linqpad?
So you'll need to find the exe/dll that that you built in VS that includes the typed dataset and reference that. Make sure the typed dataset is marked public (not internal).
You can use SQL to populate it. Use the same code that you'd do use VS. It's been ages since I've done this, but I seem to remember you use a DataAdapter, and call its Fill method.