public void issue_12() { var table = R.Db(DbName).Table(TableName); table.Delete().Run(conn); var basket = new Basket {id = 99}; table.Insert(basket).Run(conn); basket.Items = new List<string> { "Apple", "Orange", "Kiwi" }; basket.Revisions = new List<Revision> { new Revision {Bytes = new byte[] {1, 2, 3, 255}} }; basket.ArrayOfInts = new[] {new[] {1, 2, 3}, new[] {4, 5, 6}}; table.update(basket).Run(conn); Basket fromDb = table.Get(99).Run<Basket>(conn); fromDb.Dump(); fromDb.id.Should().Be(99); fromDb.Items.Should().Equal("Apple", "Orange", "Kiwi"); fromDb.Revisions.ShouldBeEquivalentTo(basket.Revisions); fromDb.ArrayOfInts.ShouldBeEquivalentTo(new[] { new[] {1, 2, 3}, new[] {4, 5, 6}}); }
public void issue_12() { var table = r.db(DbName).table(TableName); table.delete().run(conn); var basket = new Basket {id = 99}; table.insert(basket).run(conn); basket.Items = new List<string> { "Apple", "Orange", "Kiwi" }; table.update(basket).run(conn); Basket fromDb = table.get(99).run<Basket>(conn); fromDb.Dump(); fromDb.id.Should().Be(99); fromDb.Items.Should().Equal("Apple", "Orange", "Kiwi"); }