Myth.Repository.EntityFramework
3.0.0.2-preview
See the version list below for details.
dotnet add package Myth.Repository.EntityFramework --version 3.0.0.2-preview
NuGet\Install-Package Myth.Repository.EntityFramework -Version 3.0.0.2-preview
<PackageReference Include="Myth.Repository.EntityFramework" Version="3.0.0.2-preview" />
<PackageVersion Include="Myth.Repository.EntityFramework" Version="3.0.0.2-preview" />
<PackageReference Include="Myth.Repository.EntityFramework" />
paket add Myth.Repository.EntityFramework --version 3.0.0.2-preview
#r "nuget: Myth.Repository.EntityFramework, 3.0.0.2-preview"
#:package Myth.Repository.EntityFramework@3.0.0.2-preview
#addin nuget:?package=Myth.Repository.EntityFramework&version=3.0.0.2-preview&prerelease
#tool nuget:?package=Myth.Repository.EntityFramework&version=3.0.0.2-preview&prerelease
Myth.Repository.EntityFramework
It is a .NET library for defining database access repositories using Entity Framework.
⭐ Features
- Definition of base context
- Automatic reading of entity mapping files
- Writing implementation
- Implementation of reading using expressions
- Implementation of reading using specification
- Work with transactions
🔮 Usage
To use it, simply inherit the created context from BaseContext. After that, just create the repositories by passing it as a parameter.
🕶️ Reading'
Several methods can be used to read:
GetProviderName: Returns the database connection providerAsQueryable: Returns a collection for execution in the databaseAsEnumerable: Returns a collection for execution in memory]ToListAsync: Returns all items in the collectionWhere: Returns the collection with a filterSearchAsync: Returns the filtered collectionSearchPaginatedAsync: Returns the filtered and paginated collectionCountAsync: Counts the items in the collectionAnyAsync: Checks if any item in the collection meets a requirementAllAsync: Checks whether all items in the collection meet a requirementFirstOrDefaultAsync: Returns the first item in the collectionLastOrDefaultAsync: Returns the last item in the collection
✍️ Writing
The following methods can be used for writing:
AddAsync: Adds an item to the collectionAddRangeAsync: Adds multiple items to the collectionRemoveAsync: Removes an item from the collectionRemoveRangeAsync: Removes multiple items from the collectionUpdateAsync: Updates a collection itemUpdateRangeAsync: Updates multiple items in the collectionAttachAsync: Attach an item to the collectionAttachRangeAsync: Attach multiple items to the collectionSaveChangesAsync: Saves all changesExecuteSqlRawAsync: Executes a query in the database
🪄 Unit of work
The entity's independent functionalities are as follows:
SaveChangesAsync: Saves all changesExecuteSqlRawAsync: Executes a query in the databaseBeginTransactionAsync: Starts a transactionCommitAsync: Executes all transaction changesRollbackAsync: Undoes transaction changesCreateSavepointAsync: Creates a transaction checkpointRollbackToSavepointAsync: Returns to a t'ransaction checkpoint
| 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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.6)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.6)
- Myth.Repository (>= 3.0.0.2-preview)
- Myth.Specification (>= 3.0.0.2-preview)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Myth.Repository.EntityFramework:
| Package | Downloads |
|---|---|
|
Harpy.Domain
Basis for the domain layer of the Harpy Framework |
|
|
Harpy.Context
Basis for the context layer of the Harpy Framework |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.5-preview.9 | 0 | 11/10/2025 |
| 3.0.5-preview.8 | 34 | 11/8/2025 |
| 3.0.5-preview.7 | 34 | 11/8/2025 |
| 3.0.5-preview.6 | 34 | 11/8/2025 |
| 3.0.5-preview.5 | 36 | 11/8/2025 |
| 3.0.5-preview.4 | 38 | 11/7/2025 |
| 3.0.5-preview.3 | 113 | 11/4/2025 |
| 3.0.5-preview.2 | 123 | 11/4/2025 |
| 3.0.5-preview.1 | 116 | 11/4/2025 |
| 3.0.4 | 172 | 11/3/2025 |
| 3.0.4-preview.19 | 65 | 11/2/2025 |
| 3.0.4-preview.17 | 63 | 11/1/2025 |
| 3.0.4-preview.16 | 66 | 11/1/2025 |
| 3.0.4-preview.15 | 59 | 10/31/2025 |
| 3.0.4-preview.14 | 127 | 10/31/2025 |
| 3.0.4-preview.13 | 125 | 10/30/2025 |
| 3.0.4-preview.12 | 121 | 10/23/2025 |
| 3.0.4-preview.11 | 117 | 10/23/2025 |
| 3.0.4-preview.10 | 114 | 10/23/2025 |
| 3.0.4-preview.9 | 112 | 10/23/2025 |
| 3.0.4-preview.8 | 118 | 10/22/2025 |
| 3.0.4-preview.6 | 111 | 10/21/2025 |
| 3.0.4-preview.5 | 111 | 10/21/2025 |
| 3.0.4-preview.4 | 114 | 10/20/2025 |
| 3.0.4-preview.3 | 114 | 10/20/2025 |
| 3.0.4-preview.2 | 36 | 10/18/2025 |
| 3.0.4-preview.1 | 119 | 10/7/2025 |
| 3.0.3 | 212 | 8/30/2025 |
| 3.0.2 | 109 | 8/23/2025 |
| 3.0.2-preview.4 | 128 | 8/21/2025 |
| 3.0.2-preview.3 | 101 | 8/16/2025 |
| 3.0.2-preview.1 | 81 | 5/23/2025 |
| 3.0.1 | 3,396 | 3/12/2025 |
| 3.0.1-preview.2 | 150 | 3/11/2025 |
| 3.0.1-preview.1 | 86 | 2/5/2025 |
| 3.0.0.2-preview | 122 | 12/10/2024 |
| 3.0.0.1-preview | 145 | 6/29/2024 |
| 3.0.0 | 4,688 | 12/10/2024 |
| 3.0.0-preview | 148 | 6/28/2024 |
| 2.0.0.17 | 1,983 | 4/17/2024 |
| 2.0.0.16 | 3,423 | 12/15/2023 |
| 2.0.0.15 | 211 | 12/15/2023 |
| 2.0.0.11 | 3,803 | 8/11/2022 |
| 2.0.0.10 | 2,687 | 7/20/2022 |
| 2.0.0.9 | 2,762 | 7/15/2022 |
| 2.0.0.8 | 2,793 | 7/12/2022 |
| 2.0.0.7 | 2,719 | 6/20/2022 |
| 2.0.0.6 | 2,801 | 5/23/2022 |
| 2.0.0.5 | 2,761 | 5/18/2022 |
| 2.0.0 | 2,873 | 2/17/2022 |