Extension method on SQLDataReader to check Null Float

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 851
public static float CheckNullFloat(this SqlDataReader dr, int ordinal)
{
return dr.IsDBNull(ordinal) ? 0 : dr.GetFloat(ordinal);
}

Comments or Responses

Login to post response