示例#1
0
    // [Fact]
    /// <summary>
    ///   Inserts the test.
    /// </summary>
    public void InsertTest()
    {
        using var ts         = new TransactionScope();
        using var connection = CreateConnection();

        var rs = DbTools.InsertObject(
            connection,
            new
        {
            col1 = 10,
            col2 = 11,
            col3 = 12,
            col4 = 13,
            col5 = 1,
            col6 = 2
        },
            "test",
            DbSettings.Mssql).Result;

        ts.Complete();
        rs.ShouldBe(1);
    }