public void AT5_SelectEnum_() { AllTypes db = CreateDB(); var q = from p in db.Allinttypes select p.DbLinq_EnumTest; string sql_string = db.GetQueryText(q); DbLinq_EnumTest enumValue = q.First(); Assert.IsTrue(enumValue > 0, "Expected enum value>0 in AllTypes, got enumValue=" + enumValue); }