Beispiel #1
0
        public void update_table_poco()
        {
            var rez = _db.Update <Post>(new { Title = "alt title", TopicId = 3, Id = 2 });

            Assert.Equal(1, rez);
            var p = _db.Get <Post>(2);

            Assert.Equal("alt title", p.Title);
            Assert.Equal(3, p.TopicId);
        }
Beispiel #2
0
 public override void Updates(BenchmarksContainer bc)
 {
     bc.Add(id =>
     {
         _db.Update <sfPosts>(new{ Id = 3, Title = "updated" });
     }, "SqlFu");
 }