Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.0% dependent repos on nuget.org

nuget.org : codingcoder.data

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)

Registry - Homepage - JSON
purl: pkg:nuget/codingcoder.data
Keywords: 'Sqldatareader', 'Extenstion, Sql, DataReader', 'ReadByFieldName', 'DefaultValueAndTrim'
License:
Latest release: over 8 years ago
First release: over 8 years ago
Dependent repositories: 1
Downloads: 1,769 total
Last synced: 16 days ago

    Loading...
    Readme
    Loading...