CodingCoder.Data
1.0.0
dotnet add package CodingCoder.Data --version 1.0.0
NuGet\Install-Package CodingCoder.Data -Version 1.0.0
<PackageReference Include="CodingCoder.Data" Version="1.0.0" />
paket add CodingCoder.Data --version 1.0.0
#r "nuget: CodingCoder.Data, 1.0.0"
// Install CodingCoder.Data as a Cake Addin
#addin nuget:?package=CodingCoder.Data&version=1.0.0
// Install CodingCoder.Data as a Cake Tool
#tool nuget:?package=CodingCoder.Data&version=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)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,760 | 12/11/2015 |
Summary of changes made in this release of the package.