EfueliteSolutionsMSSQLReaderHelper 1.0.2
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
<PackageReference Include="EfueliteSolutionsMSSQLReaderHelper" Version="1.0.2" />
paket add EfueliteSolutionsMSSQLReaderHelper --version 1.0.2
#r "nuget: EfueliteSolutionsMSSQLReaderHelper, 1.0.2"
// 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.
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 | Versions 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. |
-
net6.0
- System.Data.OleDb (>= 8.0.0)
- System.Data.SqlClient (>= 4.8.6)
-
net7.0
- System.Data.OleDb (>= 8.0.0)
- System.Data.SqlClient (>= 4.8.6)
-
net8.0
- System.Data.OleDb (>= 8.0.0)
- System.Data.SqlClient (>= 4.8.6)
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.