EfueliteSolutionsMSSQLReaderHelper 1.0.2

Suggested Alternatives

EfueliteSolutionsDBReader

Additional Details

Maintenance of this package has been moved to EfueliteSolutionsDBReader

dotnet add package EfueliteSolutionsMSSQLReaderHelper --version 1.0.2                
NuGet\Install-Package EfueliteSolutionsMSSQLReaderHelper -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EfueliteSolutionsMSSQLReaderHelper" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EfueliteSolutionsMSSQLReaderHelper --version 1.0.2                
#r "nuget: EfueliteSolutionsMSSQLReaderHelper, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EfueliteSolutionsMSSQLReaderHelper as a Cake Addin
#addin nuget:?package=EfueliteSolutionsMSSQLReaderHelper&version=1.0.2

// Install EfueliteSolutionsMSSQLReaderHelper as a Cake Tool
#tool nuget:?package=EfueliteSolutionsMSSQLReaderHelper&version=1.0.2                

This is a simple to implement, lightweight and highly efficient package used to auto bypass null values when reading data from SqlServer Each datatype checker accepts an overload of a third parameter that can be used as a default value...If omitted, then the package default is used.

  1. In class where Efuelite DataReaderHelper is to be used, just import the name space "EfueliteSolutionsMSSQLReaderHelper".

    In your data function, for checking null values, use as shown below:

     public  Task<List<FinalItem>> GetAllFinalItems(string start_date, string end_date)
     {
         var _start_date = DateTime.Parse(start_date).ToString("yyyy-MM-dd 00:00:00");
         var _end_date = DateTime.Parse(end_date).ToString("yyyy-MM-dd 00:00:00");
    
         string query = "select distinct * from Table where (from_TRAN_DATE between '" + _start_date + "' and  '" + _end_date + "') ";
    
         try
         {
             friend.Open();
             OleDbCommand command = new OleDbCommand(query, friend);
             Console.WriteLine("Info - Getting FinalStagingTable Items.");
             OleDbDataReader reader = command.ExecuteReader();
             List<finalTable> finalTables = new List<finalTable>();
             while (reader.Read())
             {
                 finalTable finalTable = new finalTable();
    
                 finalTable.NAME = DataHelper.String(reader,"NAME");
                 finalTable.NUMBER = DataHelper.Integer(reader,"NUMBER");
                 finalTables.Add(finalTable);
             }
             friend.Close();
    
             Console.WriteLine("Info - After getting FinalStagingTable Items. Count:" + finalTables.Count);
             return Task.FromResult(finalTables);
         }
         catch (Exception ex)
         {
    
         }
     }
    

For further enquiries, you can send mails to info@efuelite.com

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EfueliteSolutionsMSSQLReaderHelper:

Package Downloads
EfueliteSolutionsFileLogger

Efuelite Solutions Date Helper package extends the c# methods with new handy methods. . Its very simple to use. For suggestions and comments, please send mails to solutions@efuelite.com or call +234-816-555-9818.

GitHub repositories

This package is not used by any popular GitHub repositories.

This package is given free for public use by all developers.