Arebis.Core.Data
8.0.1
dotnet add package Arebis.Core.Data --version 8.0.1
NuGet\Install-Package Arebis.Core.Data -Version 8.0.1
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="Arebis.Core.Data" Version="8.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Arebis.Core.Data" Version="8.0.1" />
<PackageReference Include="Arebis.Core.Data" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Arebis.Core.Data --version 8.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Arebis.Core.Data, 8.0.1"
#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.
#:package Arebis.Core.Data@8.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Arebis.Core.Data&version=8.0.1
#tool nuget:?package=Arebis.Core.Data&version=8.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Arebis.Core.Data
.NET Core extensions for working with databases.
DataReaderExtensions
- GetInt32OrNull(ordinal) return a value or null if the column is DBNull
- GetStringOrNull(ordinal) return a string or null if the column is DBNull
- GetDateTimerNull(ordinal) return a value or null if the column is DBNull
- GetBytesOrNull(ordinal) return a byte array or null if the column is DBNull
DbCommandExtensions
- AddParameter(name, value, direction, dbType, size) Creates and adds a parameter to the command.
- ExecuteSingleRow() returns an object array with the values of the first row, or null if no rows.
- ExecuteDirectionary<K,V>() returns a dictionary of all rows with the first column as key and the second column as value.
DbConnectionExtensions
- EnsureOpen() Ensures that the connection is open.
- EnsureOpenAsync() Ensures that the connection is open.
- CreateCommand(commandText, commandType, transaction) Creates a command for the connection.
QueryMapper
A simple mapper to map rows to objects.
I.e. the following code returns an IEnumerable of Customer objects with the properties Id, Name and Email filled:
var sql = "SELECT Id, Name, Email FROM Customer WHERE Country = @cc AND Level > @lev";
using var conn = new SqlConnection(connectionString);
using var qm = new QueryMapper(conn, sql)
.WithParameter("@cc", "DE")
.WithParameter("@lev", 3);
return qm.TakeAll<Customer>();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Arebis.Core (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.