public void Test19() { var nestedConvention = new NestedConvention() { Name = "Name1" }; Database.SingleInto(nestedConvention, @" select null name /*poco_dual*/"); Assert.AreEqual(null, nestedConvention.Name); }
public void Test20() { var nestedConvention = new NestedConvention() { Money = new Models.Money() { Currency = "AUD" } }; Database.SingleInto(nestedConvention, @" select 22 Money__Value /*poco_dual*/"); Assert.AreEqual(22, nestedConvention.Money.Value); Assert.AreEqual("AUD", nestedConvention.Money.Currency); }