How do you select all rows when doing linq to sql?
Select * From TableA
In both query syntax and method syntax please.
u want select all data from database then u can try this:-
dbclassDataContext dc= new dbclassDataContext()
List ObjectName= dc.tableName.ToList();
otherwise You can try this:-
var Registration = from reg in dcdc.GetTable() select reg;
and method Syntex :-
var Registration = dc.registration.Select(reg => reg);