学习LINQ的Lambda的表达式,尝试从数据集合中,选择其中几列。
创建一个model:
source code:
namespace Insus.NET.Models { public class ProdImage { public int ProductID { get; set; } public int Type { get; set; } public int Priority { get; set; } public string Url { get; set; } public string Alt { get; set; } public string Creator { get; set; } public DateTime CreateOn { get; set; } } }