[hyena] Add Delete (condition) override
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Add Delete (condition) override
- Date: Wed, 26 May 2010 02:34:41 +0000 (UTC)
commit e9317040869af8f71be37a38dd6c6d88d235fafa
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Feb 17 15:35:12 2010 -0800
Add Delete (condition) override
.../Hyena.Data.Sqlite/SqliteModelProvider.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena.Data.Sqlite/Hyena.Data.Sqlite/SqliteModelProvider.cs b/src/Hyena.Data.Sqlite/Hyena.Data.Sqlite/SqliteModelProvider.cs
index 2ddd0cd..affa723 100644
--- a/src/Hyena.Data.Sqlite/Hyena.Data.Sqlite/SqliteModelProvider.cs
+++ b/src/Hyena.Data.Sqlite/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]