Encamina.Enmarcha.Data.Abstractions 8.1.7-preview-06

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

// Install Encamina.Enmarcha.Data.Abstractions as a Cake Tool
#tool nuget:?package=Encamina.Enmarcha.Data.Abstractions&version=8.1.7-preview-06&prerelease                

Data - Abstractions

Nuget package

This project mainly contains abstractions related to data used by other ENMARCHA NuGet packages or necessary for creating your own implementations.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.Data.Abstractions from the package manager console:

PM> Install-Package Encamina.Enmarcha.Data.Abstractions

.NET CLI:

First, install .NET CLI. Then, install Encamina.Enmarcha.Data.Abstractions from the .NET CLI:

dotnet add package Encamina.Enmarcha.Data.Abstractions

How to use

In addition to the abstractions (interfaces, abstract classes, etc.) that have their implementations in other ENMARCHA NuGets, such as IFullUnitOfWork/FullUnitOfWork, you can create your own implementations.

public class InMemoryReadRepository<TEntity> : IReadRepository<TEntity> 
    where TEntity : IIdentifiable // IIdentifiable requires Encamina.Enmarcha.Entities.Abstractions nuget
{
    private readonly List<TEntity> entities = new();

    public IQueryable<TEntity> GetAll()
    {
        return entities.AsQueryable();
    }

    public IQueryable<TEntity> GetAll([NotNull] Func<IQueryable<TEntity>, IQueryable<TEntity>> queryFunction)
    {
        return entities.AsQueryable();
    }

    public TEntity GetById<TEntityId>(TEntityId id)
    {
        var entity = entities.FirstOrDefault(e => e.Id.Equals(id));
        if (entity == null)
        {
            throw new InvalidOperationException($"Entity with ID {id} not found.");
        }
        return entity;
    }
} 

This is example code, it is not tested. Do not use it in production.

In the previous example, an in-memory implementation of IReadRepository<TEntity> is created.

Product 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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Encamina.Enmarcha.Data.Abstractions:

Package Downloads
Encamina.Enmarcha.SemanticKernel

Package Description

Encamina.Enmarcha.Data.Cosmos

Package Description

Encamina.Enmarcha.SemanticKernel.Plugins.Chat

Package Description

Encamina.Enmarcha.Data.EntityFramework

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.2.0 500 10/22/2024
8.2.0-preview-01-m01 196 9/17/2024
8.1.9-preview-03 100 11/19/2024
8.1.9-preview-02 132 10/22/2024
8.1.9-preview-01 384 10/4/2024
8.1.8 334 9/23/2024
8.1.8-preview-07 659 9/12/2024
8.1.8-preview-06 354 9/11/2024
8.1.8-preview-05 183 9/10/2024
8.1.8-preview-04 499 8/16/2024
8.1.8-preview-03 260 8/13/2024
8.1.8-preview-02 173 8/13/2024
8.1.8-preview-01 205 8/12/2024
8.1.7 205 8/7/2024
8.1.7-preview-09 285 7/3/2024
8.1.7-preview-08 189 7/2/2024
8.1.7-preview-07 165 6/10/2024
8.1.7-preview-06 156 6/10/2024
8.1.7-preview-05 190 6/6/2024
8.1.7-preview-04 172 6/6/2024
8.1.7-preview-03 196 5/24/2024
8.1.7-preview-02 154 5/10/2024
8.1.7-preview-01 193 5/8/2024
8.1.6 1,356 5/7/2024
8.1.6-preview-08 160 5/2/2024
8.1.6-preview-07 189 4/29/2024
8.1.6-preview-06 559 4/26/2024
8.1.6-preview-05 191 4/24/2024
8.1.6-preview-04 210 4/22/2024
8.1.6-preview-03 193 4/22/2024
8.1.6-preview-02 277 4/17/2024
8.1.6-preview-01 297 4/15/2024
8.1.5 232 4/15/2024
8.1.5-preview-15 187 4/10/2024
8.1.5-preview-14 220 3/20/2024
8.1.5-preview-13 165 3/18/2024
8.1.5-preview-12 197 3/13/2024
8.1.5-preview-11 190 3/13/2024
8.1.5-preview-10 205 3/13/2024
8.1.5-preview-09 194 3/12/2024
8.1.5-preview-08 174 3/12/2024
8.1.5-preview-07 192 3/8/2024
8.1.5-preview-06 397 3/8/2024
8.1.5-preview-05 178 3/7/2024
8.1.5-preview-04 200 3/7/2024
8.1.5-preview-03 181 3/7/2024
8.1.5-preview-02 290 2/28/2024
8.1.5-preview-01 259 2/19/2024
8.1.4 347 2/15/2024
8.1.3 247 2/13/2024
8.1.3-preview-07 126 2/13/2024
8.1.3-preview-06 131 2/12/2024
8.1.3-preview-05 147 2/9/2024
8.1.3-preview-04 132 2/8/2024
8.1.3-preview-03 147 2/7/2024
8.1.3-preview-02 158 2/2/2024
8.1.3-preview-01 141 2/2/2024
8.1.2 177 2/1/2024
8.1.2-preview-9 152 1/22/2024
8.1.2-preview-8 139 1/19/2024
8.1.2-preview-7 136 1/19/2024
8.1.2-preview-6 122 1/19/2024
8.1.2-preview-5 130 1/19/2024
8.1.2-preview-4 129 1/19/2024
8.1.2-preview-3 131 1/18/2024
8.1.2-preview-2 152 1/18/2024
8.1.2-preview-16 116 1/31/2024
8.1.2-preview-15 123 1/31/2024
8.1.2-preview-14 224 1/25/2024
8.1.2-preview-13 135 1/25/2024
8.1.2-preview-12 148 1/23/2024
8.1.2-preview-11 146 1/23/2024
8.1.2-preview-10 160 1/22/2024
8.1.2-preview-1 136 1/18/2024
8.1.1 192 1/18/2024
8.1.0 166 1/18/2024
8.0.3 200 12/29/2023
8.0.1 177 12/14/2023
8.0.0 215 12/7/2023
6.0.4.3 207 12/29/2023
6.0.4.2 240 12/20/2023
6.0.4.1 297 12/19/2023
6.0.4 234 12/4/2023
6.0.3.20 215 11/27/2023
6.0.3.19 241 11/22/2023