コード例 #1
0
 public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
コード例 #2
0
 public void Setup()
 {
     using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
     {
         var createProduct = new CreateProductTable();
         dbConnection.Execute(createProduct.Query());
     }
 }
コード例 #3
0
        public void TearDown()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new DeleteProduct();
                dbConnection.Execute(createProduct.All());

                var dropProductTable = new DropProductTable();
                dbConnection.Execute(dropProductTable.Query());
            }
        }
コード例 #4
0
        public void TearDown()
        {
            using (IDbConnection dbConnection = new SqliteConnectionFactory().Create())
            {
                var createProduct = new DeleteProduct();
                dbConnection.Execute(createProduct.All());

                var dropProductTable = new DropProductTable();
                dbConnection.Execute(dropProductTable.Query());
            }
        }