Suid.OpenToolbox.Data.Abstractions 6.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Suid.OpenToolbox.Data.Abstractions --version 6.0.0                
NuGet\Install-Package Suid.OpenToolbox.Data.Abstractions -Version 6.0.0                
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="Suid.OpenToolbox.Data.Abstractions" Version="6.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Suid.OpenToolbox.Data.Abstractions --version 6.0.0                
#r "nuget: Suid.OpenToolbox.Data.Abstractions, 6.0.0"                
#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 Suid.OpenToolbox.Data.Abstractions as a Cake Addin
#addin nuget:?package=Suid.OpenToolbox.Data.Abstractions&version=6.0.0

// Install Suid.OpenToolbox.Data.Abstractions as a Cake Tool
#tool nuget:?package=Suid.OpenToolbox.Data.Abstractions&version=6.0.0                

Welcome to Open Toolbox Data Access Layer's documentation

Open Toolbox Data Access Layer is a .Net standard library that make easier and more readeable the use of entity framework. Library provides commands to read, create, update or delete entries in databases command. Open Toolbox Data Access Layer is write in .Net Standard 2.1, see Table of Compatibility for more information.

Documentation

What Data.Abstractions is made for

In order to use other librairies in Suid.OpenToolbox solution, class that represents an element in a database have to implement an interface. Please check below what to use in with situation.

Class representing a table

If the class your currently creating is the representation of a table, this class should implement the interface Suid.OpenToolbox.Data.Abstractions.Generics.IEntity depending of the number of primary keys.

One primary key

Let's take as an exemple a table called Entity with one integer primary key, it should be :

using Suid.OpenToolbox.Data.Abstractions.Generics;

/// <inheritdoc />
public class Entity : IEntity<int>
{
	/// <inheritdoc/>
	public int Id { get; set; }

	...
}

Two or more primary keys

Let's take as an exemple a table called Entity with dual columns primary key, it should be :

using Suid.OpenToolbox.Data.Abstractions.Generics;

/// <inheritdoc />
public class Entity : IEntity<int, string>
{
	/// <inheritdoc/>
	public int IdOne { get; set; }

	/// <inheritdoc/>
	public string IdTwo { get; set; }
	...
}

How to use my own columns name in case of multiple columns primary key ?

using Suid.OpenToolbox.Data.Abstractions.Generics;

/// <inheritdoc />
public class Entity : IEntity<int, string>
{
	/// <inheritdoc/>
	public int IdOne
	{
		get => this.MyFirstColumnId;
		set
		{
			value = this.MyFirstColumnId;
		}
	}

	/// <inheritdoc/>
	public string IdTwo
	{
		get => this.MySecondColumnId;
		set
		{
			value = this.MySecondColumnId;
		}
	}

	/// <summary>
	/// My own named first column id.
	/// </summary>
	public int MyFirstColumnId { get; set; }

	/// <summary>
	/// My own named second column id.
	/// </summary>
	public string MySecondColumnId { get; set; }
	...
}
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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Suid.OpenToolbox.Data.Abstractions:

Package Downloads
Suid.OpenToolbox.Business.Abstractions

OpenToolbox is a collection of useful .Net Standard libraries that make developpers life easier and help them to respect good practices in development. These librairies are design to respect the following arts of thinking: - OpenSource Philosophy - Keep code clear by write less - Industrial Development optimisation

Suid.OpenToolbox.Business

OpenToolbox is a collection of useful .Net Standard libraries that make developpers life easier and help them to respect good practices in development. These librairies are design to respect the following arts of thinking: - OpenSource Philosophy - Keep code clear by write less - Industrial Development optimisation

Suid.OpenToolbox.DataAccessLayer

OpenToolbox is a collection of useful .Net Standard libraries that make developpers life easier and help them to respect good practices in development. These librairies are design to respect the following arts of thinking: - OpenSource Philosophy - Keep code clear by write less - Industrial Development optimisation

Suid.OpenToolbox.DataAccessLayer.Abstractions

OpenToolbox is a collection of useful .Net Standard libraries that make developpers life easier and help them to respect good practices in development. These librairies are design to respect the following arts of thinking: - OpenSource Philosophy - Keep code clear by write less - Industrial Development optimisation

Suid.OpenToolbox

OpenToolbox is a collection of useful .Net Standard libraries that make developpers life easier and help them to respect good practices in development. These librairies are design to respect the following arts of thinking: - OpenSource Philosophy - Keep code clear by write less - Industrial Development optimisation

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.1.4 1,272 8/8/2022
6.0.0.1 563 2/21/2022
6.0.0 447 1/24/2022
5.0.1 774 9/10/2021