コード例 #1
0
        public void Value_converter()
        {
            var id  = Guid.NewGuid();
            var log = new Log()
            {
                Identifier      = id,
                CreateTime      = DateTime.Now,
                UpdateTimeTicks = DateTime.Now,
                Message         = nameof(this.Value_converter),
            };

            int count = DapperExtension.Insert(log);

            log = DapperExtension.Find <Log>(id);

            Assert.Equal(1, count);
            Assert.Equal(id, log.Identifier);
        }