Exemplo n.º 1
0
 /// <summary>
 /// 删除轮船实体
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool DeleteShip(int id)
 {
     using (var db = DbInstance.CreateDataBase())
     {
         var obj = db.Delete <Ship>(id);
         return(Convert.ToInt32(obj) > 0);
     }
 }