Kull.Data
5.1.0
See the version list below for details.
dotnet add package Kull.Data --version 5.1.0
NuGet\Install-Package Kull.Data -Version 5.1.0
<PackageReference Include="Kull.Data" Version="5.1.0" />
paket add Kull.Data --version 5.1.0
#r "nuget: Kull.Data, 5.1.0"
// Install Kull.Data as a Cake Addin #addin nuget:?package=Kull.Data&version=5.1.0 // Install Kull.Data as a Cake Tool #tool nuget:?package=Kull.Data&version=5.1.0
Kull.Data Database Access
This Library extends the .Net Standard DBA Classes like System.Data.Common.DbConnection or System.Data.Common.DbDataReader with some extension methods that makes them easiert to use. You can use this a very simple ORM Mapper as well, without the need of a full-bown Entity Framework or a total drop-in replacement like Dapper.
Some Examples
You always need to be using Kull.Data
to use the extension methods.
Call a Stored Procedure
using (var con = Kull.Data.DatabaseUtils.GetConnectionFromConfig("SomeConfigConnstr"))
{
return con.CreateSPCommand("spGetSomeData")
.AddCommandParameter("NameOfParameter", 1)
.AddCommandParameter("NameofOtherPArameter", 2)
.AsArrayOf<SomeClassName>()
}
Call a Stored Procedure, but use default DataReader
System.Data.Common.DbCommand cmd = con.CreateSPCommand("spGetSomeData")
.AddCommandParameter("NameOfParameter", 1)
.AddCommandParameter("NameofOtherPArameter", 2);
using(var rdr = cmd.ExecuteReader())
{
rdr.Read();
return rdr.GetNInt16(2); // Use Kull.Data Extension method that handles null-values for you (No System.DBNull Checking anymore...)
}
Other Feature: WrapperDataReader and ObjectDataReader
For SQL Bulk Copy or other things it can
be useful to pass C# Data as a DataReader. You can achieve that by using Kull.Data.DataReader.ObjectDataReader
. If you need to add some columns
to a datareader, you can use Kull.Data.DataReader.WrappedDataReader
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 is compatible. 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 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- TaskParallelLibrary (>= 1.0.2856)
- TimeZoneConverter (>= 3.1.0)
-
.NETFramework 4.5.1
- TimeZoneConverter (>= 3.1.0)
-
.NETFramework 4.8
- TimeZoneConverter (>= 3.1.0)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Json (>= 2.0.0)
- TimeZoneConverter (>= 3.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Kull.Data:
Package | Downloads |
---|---|
Kull.GenericBackend
Package Description |
|
Kull.DatabaseMetadata
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1 | 455 | 11/26/2023 |
8.0.1-alpha | 86 | 11/11/2023 |
6.1.3 | 289 | 5/7/2023 |
6.1.2 | 3,293 | 11/11/2022 |
6.1.1 | 598 | 10/21/2022 |
6.1.0 | 467 | 9/22/2022 |
6.1.0-beta8 | 402 | 7/30/2022 |
6.1.0-beta7 | 148 | 7/30/2022 |
6.1.0-beta6 | 168 | 7/15/2022 |
6.1.0-beta5 | 165 | 7/8/2022 |
6.1.0-beta4 | 170 | 7/8/2022 |
6.1.0-beta3 | 155 | 7/7/2022 |
6.1.0-beta2 | 159 | 7/7/2022 |
6.1.0-beta1 | 154 | 7/7/2022 |
6.0.5 | 1,354 | 6/22/2022 |
6.0.4 | 438 | 6/14/2022 |
6.0.3 | 1,679 | 3/21/2022 |
6.0.2 | 696 | 3/18/2022 |
6.0.1 | 688 | 1/12/2022 |
6.0.0 | 3,393 | 10/23/2021 |
6.0.0-beta9 | 763 | 9/28/2021 |
6.0.0-beta8 | 143 | 9/23/2021 |
6.0.0-beta7 | 261 | 9/10/2021 |
6.0.0-beta6 | 150 | 8/30/2021 |
6.0.0-beta5 | 147 | 8/30/2021 |
6.0.0-beta4 | 135 | 8/30/2021 |
6.0.0-beta3 | 150 | 8/30/2021 |
6.0.0-beta2 | 154 | 8/27/2021 |
6.0.0-beta1 | 154 | 8/27/2021 |
5.4.1 | 2,055 | 7/29/2021 |
5.4.0 | 1,804 | 4/13/2021 |
5.4.0-rc2 | 270 | 1/26/2021 |
5.4.0-rc1 | 461 | 9/24/2020 |
5.3.0 | 4,286 | 8/19/2020 |
5.2.1 | 3,042 | 4/30/2020 |
5.2.0 | 597 | 3/23/2020 |
5.2.0-beta1 | 422 | 1/9/2020 |
5.1.0 | 3,915 | 8/14/2019 |
5.0.3 | 685 | 11/22/2019 |
5.0.2 | 544 | 11/22/2019 |
5.0.1 | 601 | 11/22/2019 |
4.1.1 | 566 | 11/22/2019 |
2.0.4 | 550 | 11/22/2019 |