System.Data.SQLite
Artifact Content
Not logged in

Artifact e5faefcc33bc35eef6cb8eb3f09458c2edbdd1a6:


using System;
using System.Data;
using System.Text;
using System.Data.Common;
using System.Data.SQLite;

namespace test
{
  class Program
  {
    static void Main(string[] args)
    {
      DbProviderFactory fact;
      fact = DbProviderFactories.GetFactory("System.Data.SQLite");

      System.IO.File.Delete("test.db3");
      using (DbConnection cnn = fact.CreateConnection())
      {
        cnn.ConnectionString = "Data Source=test.db3";
        cnn.Open();

        //cnn.Update += new SQLiteUpdateEventHandler(cnn_Updated);
        //cnn.Commit += new SQLiteCommitHandler(cnn_Commit);
        //cnn.RollBack += new EventHandler(cnn_RollBack);

        TestCases.Run(fact, cnn);
      }

      Console.ReadKey();
    }

    static void cnn_RollBack(object sender, EventArgs e)
    {
    }

    static void cnn_Commit(object sender, CommitEventArgs e)
    {
    }

    static void cnn_Updated(object sender, UpdateEventArgs e)
    {
    }
  }
}