コード例 #1
0
 public void Delete(int id)
 {
     using (_connection = Utilities.Database.GetProfiledOpenConnection())
     {
         _connection.Delete<TwitterApp>(id);
     }
 }
コード例 #2
0
 public void Delete(int id)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete<Vote>(id);
     }
 }
コード例 #3
0
 public RestaurantType Delete(RestaurantType entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
        _connection.Delete(entity);
     }
     return entity;
 }
コード例 #4
0
 public Veto Delete(Veto entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
コード例 #5
0
 public ActionResult Delete(int id)
 {
     using (_connection = Utilities.GetOpenConnection())
     {
         _connection.Delete<User>(id);
     }
     return RedirectToAction("index");
 }
コード例 #6
0
 public Holiday Delete(Holiday entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
コード例 #7
0
 public JobLog Delete(JobLog entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
コード例 #8
0
 public ActionResult Delete(string id)
 {
     using (_connection = Utilities.GetOpenConnection())
     {
         _connection.Delete<GUIDTestViewModel>(id);
     }
     return RedirectToAction("index");
 }