CodingCoder.Data 1.0.0

It extends the IDataReader to make it easy to read data from database. It added default value , trim option when read string, read int, read bool. And also add  Nullable<DateTime>, Nullable<int>, Nullable<bool> Nullable<decimal>
------------------------------------------------
public static string ReadString(this IDataReader reader, string fieldName, bool trimmed)
public static string ReadString(this IDataReader reader, string fieldName, string nullValue)
public static string ReadString(this IDataReader reader, string fieldName)
public static string ReadString(this IDataReader reader, string fieldName, string nullValue, bool trimmed)
public static bool ReadBool(this IDataReader reader, string fieldName)
private static bool ReadSafeBool(IDataReader reader, int fieldIndex)
public static bool ReadBool(this IDataReader reader, string fieldName, bool nullValue)
public static bool ReadBool(this IDataReader reader, string fieldName, BooleanRepresentation representation, bool nullValue)
public static DateTime ReadDate(this IDataReader reader, string fieldName)
public static DateTime ReadDate(this IDataReader reader, string fieldName, DateTime nullValue)
public static int ReadInt(this IDataReader reader, string fieldName, int defaultValue)
public static int ReadInt(this IDataReader reader, string fieldName)
public static short ReadShort(this IDataReader reader, string fieldName, short defaultValue)
public static short ReadShort(this IDataReader reader, string fieldName)
public static decimal ReadDecimal(this IDataReader reader, string fieldName)
public static decimal ReadDecimal(this IDataReader reader, string fieldName, decimal defaultValue)
public static long ReadLong(this IDataReader reader, string fieldName, long defaultValue)
public static Guid ReadGuid(this IDataReader reader, string fieldName)
public static Nullable<int> ReadNullableInt(this IDataReader reader, string fieldName)
public static Nullable<DateTime> ReadNullableDate(this IDataReader reader, string fieldName)
public static decimal? ReadNullableDecimal(this IDataReader reader, string fieldName)

Install-Package CodingCoder.Data -Version 1.0.0
dotnet add package CodingCoder.Data --version 1.0.0
<PackageReference Include="CodingCoder.Data" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodingCoder.Data --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Summary of changes made in this release of the package.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 792 12/11/2015