Esempio n. 1
0
        public void SetUp()
        {
            _connection = new InterceptDataConnection(ProviderName.SQLite, "Data Source=:memory:;");

            _connection.CreateTable <TestTable>();

            _connection.Insert(new TestTable {
                ID = 1, Description = "Row 1"
            });
            _connection.Insert(new TestTable {
                ID = 2, Description = "Row 2"
            });
        }
Esempio n. 2
0
        public void SetUp()
        {
#if NETSTANDARD1_6 || NETSTANDARD2_0
            _connection = new InterceptDataConnection(ProviderName.SQLiteMS, "Data Source=:memory:;");
#else
            _connection = new InterceptDataConnection(ProviderName.SQLiteClassic, "Data Source=:memory:;");
#endif

            _connection.CreateTable <TestTable>();

            _connection.Insert(new TestTable {
                ID = 1, Description = "Row 1"
            });
            _connection.Insert(new TestTable {
                ID = 2, Description = "Row 2"
            });
        }