摘要:
分析出运行结果?View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { B b = new B(); A a = new A(); A a2 = new B(); a.Fun2(a)... 阅读全文
摘要:
【转】http://blog.csdn.net/tuwen/article/details/58327481、查询Student表中的所有记录的Sname、Ssex和Class列。select sname,ssex,class from studentLinq: from s in Students select new { s.SNAME, s.SSEX, s.CLASS }Lambda: Students.Select( s => new { SNAME = s.SNAME,SSEX = s.SSEX,CLASS = s.CLASS }) 2、查询教师所有的单位即不重复的Depart 阅读全文