using System; using System.Collections.Generic; using System.Data; using System.Reflection; /// <summary> /// 将DataTable数据源转换成实体类 /// </summary> /// <typeparam name="T">实体</typeparam> public static class ToModel<T>…
public string GetPwd(string str) { var dt= bll.Gets(str); List<string> list = new List<string>(); for (int i = 0; i < dt.Columns.Count; i++) { for (int j = 0; j < dt.Rows.Count; j++) { list.Add(dt.Rows[j][i].ToString()); } } return JsonC…
public class Person { } public class Student extends Person{ private String name; public Student(String name) { this.name = name; } public Student() { } public String getName() { return name; } public void setName(String name) { this.name = name; } @…