From a5f9dc1bfc6c8d37f915d2ea33e495013bd83ba5 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 23:37:50 -0500 Subject: isolated sqlite dependancy --- .../Persistence/SQLite/SQLiteExtensions.cs | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 MediaBrowser.Controller/Persistence/SQLite/SQLiteExtensions.cs (limited to 'MediaBrowser.Controller/Persistence/SQLite/SQLiteExtensions.cs') diff --git a/MediaBrowser.Controller/Persistence/SQLite/SQLiteExtensions.cs b/MediaBrowser.Controller/Persistence/SQLite/SQLiteExtensions.cs deleted file mode 100644 index f1ed77492..000000000 --- a/MediaBrowser.Controller/Persistence/SQLite/SQLiteExtensions.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Data; -using System.Data.SQLite; - -namespace MediaBrowser.Controller.Persistence.SQLite -{ - /// - /// Class SQLiteExtensions - /// - static class SQLiteExtensions - { - /// - /// Adds the param. - /// - /// The CMD. - /// The param. - /// SQLiteParameter. - /// - public static SQLiteParameter AddParam(this SQLiteCommand cmd, string param) - { - if (string.IsNullOrEmpty(param)) - { - throw new ArgumentNullException(); - } - - var sqliteParam = new SQLiteParameter(param); - cmd.Parameters.Add(sqliteParam); - return sqliteParam; - } - - /// - /// Adds the param. - /// - /// The CMD. - /// The param. - /// The data. - /// SQLiteParameter. - /// - public static SQLiteParameter AddParam(this SQLiteCommand cmd, string param, object data) - { - if (string.IsNullOrEmpty(param)) - { - throw new ArgumentNullException(); - } - - var sqliteParam = AddParam(cmd, param); - sqliteParam.Value = data; - return sqliteParam; - } - - /// - /// Determines whether the specified conn is open. - /// - /// The conn. - /// true if the specified conn is open; otherwise, false. - public static bool IsOpen(this SQLiteConnection conn) - { - return conn.State == ConnectionState.Open; - } - } -} -- cgit v1.2.3