Encamina.Enmarcha.Data.Abstractions
8.1.2-preview-15
See the version list below for details.
dotnet add package Encamina.Enmarcha.Data.Abstractions --version 8.1.2-preview-15
NuGet\Install-Package Encamina.Enmarcha.Data.Abstractions -Version 8.1.2-preview-15
<PackageReference Include="Encamina.Enmarcha.Data.Abstractions" Version="8.1.2-preview-15" />
paket add Encamina.Enmarcha.Data.Abstractions --version 8.1.2-preview-15
#r "nuget: Encamina.Enmarcha.Data.Abstractions, 8.1.2-preview-15"
// Install Encamina.Enmarcha.Data.Abstractions as a Cake Addin #addin nuget:?package=Encamina.Enmarcha.Data.Abstractions&version=8.1.2-preview-15&prerelease // Install Encamina.Enmarcha.Data.Abstractions as a Cake Tool #tool nuget:?package=Encamina.Enmarcha.Data.Abstractions&version=8.1.2-preview-15&prerelease
Data - Abstractions
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 | 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 | 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. |
-
.NETStandard 2.1
- CommunityToolkit.Diagnostics (>= 8.2.2)
- Encamina.Enmarcha.Entities.Abstractions (>= 8.1.2-preview-15)
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 | 307 | 10/22/2024 |
8.2.0-preview-01-m01 | 183 | 9/17/2024 |
8.1.9-preview-02 | 125 | 10/22/2024 |
8.1.9-preview-01 | 365 | 10/4/2024 |
8.1.8 | 328 | 9/23/2024 |
8.1.8-preview-07 | 551 | 9/12/2024 |
8.1.8-preview-06 | 348 | 9/11/2024 |
8.1.8-preview-05 | 177 | 9/10/2024 |
8.1.8-preview-04 | 495 | 8/16/2024 |
8.1.8-preview-03 | 256 | 8/13/2024 |
8.1.8-preview-02 | 169 | 8/13/2024 |
8.1.8-preview-01 | 199 | 8/12/2024 |
8.1.7 | 201 | 8/7/2024 |
8.1.7-preview-09 | 281 | 7/3/2024 |
8.1.7-preview-08 | 185 | 7/2/2024 |
8.1.7-preview-07 | 161 | 6/10/2024 |
8.1.7-preview-06 | 152 | 6/10/2024 |
8.1.7-preview-05 | 186 | 6/6/2024 |
8.1.7-preview-04 | 168 | 6/6/2024 |
8.1.7-preview-03 | 192 | 5/24/2024 |
8.1.7-preview-02 | 150 | 5/10/2024 |
8.1.7-preview-01 | 189 | 5/8/2024 |
8.1.6 | 1,219 | 5/7/2024 |
8.1.6-preview-08 | 154 | 5/2/2024 |
8.1.6-preview-07 | 185 | 4/29/2024 |
8.1.6-preview-06 | 550 | 4/26/2024 |
8.1.6-preview-05 | 187 | 4/24/2024 |
8.1.6-preview-04 | 206 | 4/22/2024 |
8.1.6-preview-03 | 186 | 4/22/2024 |
8.1.6-preview-02 | 273 | 4/17/2024 |
8.1.6-preview-01 | 293 | 4/15/2024 |
8.1.5 | 228 | 4/15/2024 |
8.1.5-preview-15 | 183 | 4/10/2024 |
8.1.5-preview-14 | 216 | 3/20/2024 |
8.1.5-preview-13 | 161 | 3/18/2024 |
8.1.5-preview-12 | 193 | 3/13/2024 |
8.1.5-preview-11 | 186 | 3/13/2024 |
8.1.5-preview-10 | 201 | 3/13/2024 |
8.1.5-preview-09 | 190 | 3/12/2024 |
8.1.5-preview-08 | 170 | 3/12/2024 |
8.1.5-preview-07 | 186 | 3/8/2024 |
8.1.5-preview-06 | 393 | 3/8/2024 |
8.1.5-preview-05 | 174 | 3/7/2024 |
8.1.5-preview-04 | 194 | 3/7/2024 |
8.1.5-preview-03 | 177 | 3/7/2024 |
8.1.5-preview-02 | 286 | 2/28/2024 |
8.1.5-preview-01 | 255 | 2/19/2024 |
8.1.4 | 343 | 2/15/2024 |
8.1.3 | 243 | 2/13/2024 |
8.1.3-preview-07 | 118 | 2/13/2024 |
8.1.3-preview-06 | 127 | 2/12/2024 |
8.1.3-preview-05 | 137 | 2/9/2024 |
8.1.3-preview-04 | 128 | 2/8/2024 |
8.1.3-preview-03 | 143 | 2/7/2024 |
8.1.3-preview-02 | 152 | 2/2/2024 |
8.1.3-preview-01 | 137 | 2/2/2024 |
8.1.2 | 167 | 2/1/2024 |
8.1.2-preview-9 | 148 | 1/22/2024 |
8.1.2-preview-8 | 135 | 1/19/2024 |
8.1.2-preview-7 | 132 | 1/19/2024 |
8.1.2-preview-6 | 118 | 1/19/2024 |
8.1.2-preview-5 | 124 | 1/19/2024 |
8.1.2-preview-4 | 125 | 1/19/2024 |
8.1.2-preview-3 | 125 | 1/18/2024 |
8.1.2-preview-2 | 148 | 1/18/2024 |
8.1.2-preview-16 | 112 | 1/31/2024 |
8.1.2-preview-15 | 119 | 1/31/2024 |
8.1.2-preview-14 | 220 | 1/25/2024 |
8.1.2-preview-13 | 131 | 1/25/2024 |
8.1.2-preview-12 | 144 | 1/23/2024 |
8.1.2-preview-11 | 142 | 1/23/2024 |
8.1.2-preview-10 | 154 | 1/22/2024 |
8.1.2-preview-1 | 132 | 1/18/2024 |
8.1.1 | 186 | 1/18/2024 |
8.1.0 | 160 | 1/18/2024 |
8.0.3 | 196 | 12/29/2023 |
8.0.1 | 167 | 12/14/2023 |
8.0.0 | 209 | 12/7/2023 |
6.0.4.3 | 201 | 12/29/2023 |
6.0.4.2 | 234 | 12/20/2023 |
6.0.4.1 | 293 | 12/19/2023 |
6.0.4 | 230 | 12/4/2023 |
6.0.3.20 | 209 | 11/27/2023 |
6.0.3.19 | 237 | 11/22/2023 |