03 2021 档案
摘要:多表连接查询 先新建一个班级类,初始化数据 public class StudentClass { public int ClassId { get; set; } public string ClassName { get; set; } } List<StudentClass> studentC
阅读全文
摘要:自定义学生类 public class Student { public int Id { get; set; } public string Name { get; set; } public int ClassId { get; set; } public int Age { get; set;
阅读全文
摘要:当我们在不想或不能去修改类的源代码的情况下,又要去增加新的方法时,可以用扩展方法。 class Program { static void Main(string[] args) { int r = 0; GetNum getNum = new GetNum(); r = getNum.Add(1,
阅读全文

浙公网安备 33010602011771号