public void CanGetNullableEnumValue()
 {
     using (var con = OpenDbConnection())
     {
         con.CreateTable<TypeWithNullableEnum>(true);
         var obj = new TypeWithNullableEnum { Id = 1, EnumValue = SomeEnum.Value1 };
         con.Save(obj);
         var target = con.SingleById<TypeWithNullableEnum>(obj.Id);
         Assert.AreEqual(obj.Id, target.Id);
         Assert.AreEqual(obj.EnumValue, target.EnumValue);
     }
 }
Exemple #2
0
 public void CanGetNullableEnumValue()
 {
     using (var con = OpenDbConnection())
     {
         con.CreateTable <TypeWithNullableEnum>(true);
         var obj = new TypeWithNullableEnum {
             Id = 1, EnumValue = SomeEnum.Value1
         };
         con.Save(obj);
         var target = con.SingleById <TypeWithNullableEnum>(obj.Id);
         Assert.AreEqual(obj.Id, target.Id);
         Assert.AreEqual(obj.EnumValue, target.EnumValue);
     }
 }