You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have new extension form FbDataReader class. I extend Get... (GetString, GetInt32, etc) methods for new parameters. Example: GetString("FIELDNAME", "DefaultValue").
The code:
using System;
using FirebirdSql.Data.FirebirdClient;
public static class FbDataReaderEx
{
public static bool GetBoolean(this FbDataReader oR, string FieldName, bool Default)
{
if (oR.IsDBNull(oR.GetOrdinal(FieldName)))
{
return Default;
}
else
{
return oR.GetBoolean(oR.GetOrdinal(FieldName));
}
}
Submitted by: Gabor Lakatos (luckye)
I have new extension form FbDataReader class. I extend Get... (GetString, GetInt32, etc) methods for new parameters. Example: GetString("FIELDNAME", "DefaultValue").
The code:
using System;
using FirebirdSql.Data.FirebirdClient;
public static class FbDataReaderEx
{
public static bool GetBoolean(this FbDataReader oR, string FieldName, bool Default)
{
if (oR.IsDBNull(oR.GetOrdinal(FieldName)))
{
return Default;
}
else
{
return oR.GetBoolean(oR.GetOrdinal(FieldName));
}
}
}
I would be happy if the new procedures would appear in the new version.
Thanks,
Gabor
The text was updated successfully, but these errors were encountered: