NetBlog主题

C#,根据Model生成sql语,并生成sql参数
数据库

C#,根据Model生成sql语,并生成sql参数

4956

public class TestModel{public int ID { get; set; }public string Name { get; set; }public string QQ { get; set; }public string Email { get; set; } }public class TestDal{public void CreateSql<T>(T model){Type type = typeof(T);string[] strSqlNames = ty…