[banshee] [Hyena.Data.Sqlite] Add Delete (condition) override
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Hyena.Data.Sqlite] Add Delete (condition) override
- Date: Wed, 17 Feb 2010 23:36:00 +0000 (UTC)
commit 67e4d7be296b18916f5c98e0103ce26ad16281a6
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Feb 17 15:35:12 2010 -0800
[Hyena.Data.Sqlite] Add Delete (condition) override
.../Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs b/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs
index 2ddd0cd..affa723 100644
--- a/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs
+++ b/src/Libraries/Hyena/Hyena.Data.Sqlite/SqliteModelProvider.cs
@@ -449,6 +449,11 @@ namespace Hyena.Data.Sqlite
Delete (PrimaryKeyFor (item));
}
+ public void Delete (string condition, params object [] vals)
+ {
+ connection.Execute (String.Format ("DELETE FROM {0} WHERE {1}", TableName, condition), vals);
+ }
+
public virtual void Delete (IEnumerable<T> items)
{
List<long> ids = new List<long> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]