Example #1
0
        public void serdes_poco_with_ignored_guid_id()
        {
            var poco = new PocoWithIgnoredGuidId()
            {
                FirstName = "Brian",
                LastName  = "Chavez"
            };

            var result = table.Insert(poco)
                         .RunWrite(conn);

            result.Dump();
            result.GeneratedKeys[0].Should().NotBeEmpty();
            var get = table.Get(result.GeneratedKeys[0])
                      .RunResult <PocoWithIgnoredGuidId>(conn);

            get.id.Should().BeEmpty();
            get.Dump();
        }
        public void serdes_poco_with_ignored_guid_id()
        {
            var poco = new PocoWithIgnoredGuidId()
                {
                    FirstName = "Brian",
                    LastName = "Chavez"
                };

            var result = table.Insert(poco)
                .RunResult(conn);

            result.Dump();
            result.GeneratedKeys[0].Should().NotBeEmpty();
            var get = table.Get(result.GeneratedKeys[0])
                .RunResult<PocoWithIgnoredGuidId>(conn);
            get.id.Should().BeEmpty();
            get.Dump();
        }