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