Beispiel #1
0
        public void TestInsertFileIntoCell()
        {
            const string sqlCreateTable = "create table test (bin blob);";
            const string sqlInsertFile  = "insert into test (bin) values (@bin);";
            var          file           = Assembly.GetExecutingAssembly().Location;

            var xQuery = new XQuerySqlite(SetUp.SqliteConnectionString);

            xQuery.BeginTransaction();
            xQuery.Create(sqlCreateTable);
            Assert.IsTrue(xQuery.InsertFileIntoCell(file, sqlInsertFile, "@bin"));
        }