学习LINQ的Lambda的表达式,尝试从数据集合中,选择其中几列。

创建一个model:
LINQ使用Lambda表达式选择几列

 

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; }
    }
}
View Code

相关文章:

  • 2022-02-06
  • 2022-02-02
  • 2021-06-29
  • 2022-01-12
  • 2021-05-26
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-01
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案