Пример #1
0
 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));
Пример #2
0
 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));