Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Use ToList to create a generic List from a sequence.
Example
The following sample uses ToList to immediately evaluate a query into a generic List<T>.
var empQuery =
from emp in db.Employees
where emp.HireDate >= new DateTime(1994, 1, 1)
select emp;
List<Employee> qList = empQuery.ToList();
Dim empQuery = _
From emp In db.Employees _
Where emp.HireDate.Value >= #1/1/1994# _
Select emp
Dim qList As List(Of Employee) = empQuery.ToList()