예제 #1
0
        public SqliteDbFixture()
        {
            DbFileName = Path.GetTempFileName() + ".sqlite";

            DbConnection = new SqliteConnection($"Data Source={DbFileName}");
            DbFactory    = new SqlLogDbFactory(Microsoft.Data.Sqlite.SqliteFactory.Instance)
            {
                LastInsertIdSelectText = "SELECT last_insert_rowid()"
            };
            CreateDb();
        }
예제 #2
0
 internal SqlLogDbCommand(DbCommand realCmd, SqlLogDbFactory logDbFactory)
 {
     DbCmd        = realCmd;
     LogDbFactory = logDbFactory;
 }