public static T GetEnum <T>(this SqlDataReaderLRAP me, object defaultValue, int no) where T : struct, IConvertible
        {
            int value = me.GetInt32(no);

            if (!Enum.IsDefined(typeof(T), value))
            {
                return((T)defaultValue);
            }

            return((T)(object)value);
        }
 public static int GetInt32SafeToInt(this SqlDataReaderLRAP me, int no, int defaultIfNull = -1)
 {
     return(me.IsDBNull(no) ? defaultIfNull : me.GetInt32(no));
 }
 public static int?GetInt32Nullable(this SqlDataReaderLRAP me, int no)
 {
     return(me.IsDBNull(no) ? (int?)null : (int?)me.GetInt32(no));
 }
 public static string GetInt32SafeToString(this SqlDataReaderLRAP me, int no, string defaultIfNull = "")
 {
     return(me.IsDBNull(no) ? defaultIfNull : me.GetInt32(no).ToString());
 }