예제 #1
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <returns></returns>
 public int SaveChanges()
 {
     return(Db.SaveChanges());
 }
예제 #2
0
 //上下文提交
 public bool Commit()
 {
     return(_dbcontext.SaveChanges() > 0);
 }