Пример #1
0
        public void InsertTest()
        {
            var sqlBuilder =
                new SqlQueryBuilder <InsertQuery>()
                .WithTableName("testTable")
                .WithColumn("Test")
                .WithColumn("TestOne")
                .AddParameter(new ValueParameter("1"))
                .AddParameter(new ValueParameter("1"));

            Assert.AreEqual("INSERT INTO [dbo].[testTable] ([Test], [TestOne]) VALUES ('1', '1');\ngo\n", sqlBuilder.Construct());
        }