How do you select all rows when doing linq to sql?
Select * From TableA
In both query syntax and method syntax please.
using (MyDataContext dc = new MyDataContext()) { var rows = from myRow in dc.MyTable select myRow; }
OR
using (MyDataContext dc = new MyDataContext()) { var rows = dc.MyTable.Select(row => row); }