00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 using System.Data.SQLite; 00006 using System.Data; 00007 using System.Data.Common; 00008 using System.Configuration; 00009 00010 namespace Foodolini.Tools 00011 { 00015 public class SQLiteDB : Database<SQLiteConnection> 00016 { 00017 public SQLiteDB(string connString) 00018 { 00019 connection = new SQLiteConnection(connString); 00020 } 00021 00022 protected override DbCommand GetCommand(string sql) 00023 { 00024 return new SQLiteCommand(sql, connection); 00025 } 00026 00027 public override SQLiteConnection GetConnection() 00028 { 00029 return new SQLiteConnection(this.connection.ConnectionString); 00030 } 00031 } 00032 }