随笔分类 - EF
摘要:Class cl = new Class() { ClassName = "一年级1班" }; TestDBEntities context = new TestDBEntities(); context.Class.Add(cl); Student st = new Student() { Cla
阅读全文
摘要:public class DALHelper { public static List Search() where T : SH_SetBase { using (var db = new ShopContext()) ...
阅读全文
摘要:先给出1:0关系 User表包括用户名和密码 public class User { public int ID { get; set; } public string UserName { get; set; } public string Passwd { get; set; } public virtual Us...
阅读全文