public void CanGetEnumValue()
        {
            using (var db = OpenDbConnection())
            {
                db.DropAndCreateTable<TypeWithIntEnum>();

                var obj = new TypeWithIntEnum { Id = 1, EnumValue = SomeEnum.Value1 };
                db.Save(obj);
                var target = db.SingleById<TypeWithIntEnum>(obj.Id);
                Assert.AreEqual(obj.Id, target.Id);
                Assert.AreEqual(obj.EnumValue, target.EnumValue);
            }
        }
        public void Can_get_Scalar_Enum()
        {
            using (var db = OpenDbConnection())
            {
                db.DropAndCreateTable<TypeWithIntEnum>();

                var row = new TypeWithIntEnum { Id = 1, EnumValue = SomeEnum.Value2 };
                db.Insert(row);

                var someEnum = db.Scalar<SomeEnum>(db.From<TypeWithIntEnum>()
                    .Where(o => o.Id == row.Id)
                    .Select(o => o.EnumValue));

                Assert.That(someEnum, Is.EqualTo(SomeEnum.Value2));
            }
        }