我可以在不使用任何查询的情况下从SQL数据库表中获取数据吗??????在vb或C#中
答案 0 :(得分:1)
“Linq”基础设施可以实现。
一点C#样本:
var q =
from c in db.Customers
where c.City == "London"
select c;
// Execute first time
foreach (Customer c in q)
Console.WriteLine(c.CompanyName);
// Execute second time
foreach (Customer c in q)
Console.WriteLine(c.CompanyName);