public static T?NullableLongEnum <T>(this SqlDataReader reader, int ordinal) where T : struct, Enum => QueryChecker != null ? QueryChecker.Check <T?>(reader, ordinal) : reader.IsDBNull(ordinal) ? new T?() : LongToEnumCache <T> .Func(reader.GetInt64(ordinal));
public static T LongEnum <T>(this SqlDataReader reader, int ordinal) where T : Enum => QueryChecker != null ? QueryChecker.Check <T>(reader, ordinal) : LongToEnumCache <T> .Func(reader.GetInt64(ordinal));