public int Update(Books obj, string whereStr) { throw new NotImplementedException(); }
/// <summary> /// 增加数据 /// </summary> /// <param name="obj"></param> /// <returns>返回刚插入数据的ID</returns> public int Add(Books obj) { bse.Books.Add(obj); bse.SaveChanges(); return obj.Id; }