/// <summary> ///增加 /// </summary> /// <param name="entity"></param> /// <returns></returns> public T AddEntity(T entity) { Db.Set <T>().Add(entity); Db.SaveChanges(); return(entity); }
//添加用户信息 public T Addentity(T entry) { T Userinfo = db.Set <T>().Add(entry); return(entry); }