public static int CheckNullInt(this SqlDataReader dr, int ordinal) { return dr.IsDBNull(ordinal) ? 0 : dr.GetInt32(ordinal); }
Login to post response