Myth.Repository.EntityFramework
3.0.4-preview.6
See the version list below for details.
dotnet add package Myth.Repository.EntityFramework --version 3.0.4-preview.6
NuGet\Install-Package Myth.Repository.EntityFramework -Version 3.0.4-preview.6
<PackageReference Include="Myth.Repository.EntityFramework" Version="3.0.4-preview.6" />
<PackageVersion Include="Myth.Repository.EntityFramework" Version="3.0.4-preview.6" />
<PackageReference Include="Myth.Repository.EntityFramework" />
paket add Myth.Repository.EntityFramework --version 3.0.4-preview.6
#r "nuget: Myth.Repository.EntityFramework, 3.0.4-preview.6"
#:package Myth.Repository.EntityFramework@3.0.4-preview.6
#addin nuget:?package=Myth.Repository.EntityFramework&version=3.0.4-preview.6&prerelease
#tool nuget:?package=Myth.Repository.EntityFramework&version=3.0.4-preview.6&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.4-preview.6)
- Myth.Specification (>= 3.0.4-preview.6)
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 |
|---|---|---|
| 4.2.1-preview.1 | 612 | 12/2/2025 |
| 4.2.0 | 408 | 11/30/2025 |
| 4.2.0-preview.1 | 61 | 11/29/2025 |
| 4.1.0 | 168 | 11/27/2025 |
| 4.1.0-preview.3 | 124 | 11/27/2025 |
| 4.1.0-preview.2 | 120 | 11/27/2025 |
| 4.1.0-preview.1 | 125 | 11/26/2025 |
| 4.0.1 | 155 | 11/22/2025 |
| 4.0.1-preview.8 | 142 | 11/22/2025 |
| 4.0.1-preview.7 | 154 | 11/22/2025 |
| 4.0.1-preview.6 | 133 | 11/22/2025 |
| 4.0.1-preview.5 | 196 | 11/21/2025 |
| 4.0.1-preview.4 | 203 | 11/21/2025 |
| 4.0.1-preview.3 | 212 | 11/21/2025 |
| 4.0.1-preview.2 | 233 | 11/21/2025 |
| 4.0.1-preview.1 | 241 | 11/21/2025 |
| 4.0.0 | 385 | 11/20/2025 |
| 4.0.0-preview.3 | 338 | 11/19/2025 |
| 4.0.0-preview.2 | 87 | 11/15/2025 |
| 4.0.0-preview.1 | 105 | 11/15/2025 |
| 3.10.0 | 159 | 11/15/2025 |
| 3.0.5-preview.15 | 145 | 11/14/2025 |
| 3.0.5-preview.14 | 222 | 11/12/2025 |
| 3.0.5-preview.13 | 223 | 11/12/2025 |
| 3.0.5-preview.12 | 221 | 11/11/2025 |
| 3.0.5-preview.11 | 222 | 11/11/2025 |
| 3.0.5-preview.10 | 222 | 11/11/2025 |
| 3.0.5-preview.9 | 215 | 11/10/2025 |
| 3.0.5-preview.8 | 86 | 11/8/2025 |
| 3.0.5-preview.7 | 86 | 11/8/2025 |
| 3.0.5-preview.6 | 87 | 11/8/2025 |
| 3.0.5-preview.5 | 89 | 11/8/2025 |
| 3.0.5-preview.4 | 62 | 11/7/2025 |
| 3.0.5-preview.3 | 130 | 11/4/2025 |
| 3.0.5-preview.2 | 139 | 11/4/2025 |
| 3.0.5-preview.1 | 131 | 11/4/2025 |
| 3.0.4 | 189 | 11/3/2025 |
| 3.0.4-preview.19 | 73 | 11/2/2025 |
| 3.0.4-preview.17 | 72 | 11/1/2025 |
| 3.0.4-preview.16 | 76 | 11/1/2025 |
| 3.0.4-preview.15 | 68 | 10/31/2025 |
| 3.0.4-preview.14 | 137 | 10/31/2025 |
| 3.0.4-preview.13 | 133 | 10/30/2025 |
| 3.0.4-preview.12 | 126 | 10/23/2025 |
| 3.0.4-preview.11 | 122 | 10/23/2025 |
| 3.0.4-preview.10 | 118 | 10/23/2025 |
| 3.0.4-preview.9 | 116 | 10/23/2025 |
| 3.0.4-preview.8 | 123 | 10/22/2025 |
| 3.0.4-preview.6 | 116 | 10/21/2025 |
| 3.0.4-preview.5 | 115 | 10/21/2025 |
| 3.0.4-preview.4 | 120 | 10/20/2025 |
| 3.0.4-preview.3 | 120 | 10/20/2025 |
| 3.0.4-preview.2 | 41 | 10/18/2025 |
| 3.0.4-preview.1 | 124 | 10/7/2025 |
| 3.0.3 | 221 | 8/30/2025 |
| 3.0.2 | 119 | 8/23/2025 |
| 3.0.2-preview.4 | 132 | 8/21/2025 |
| 3.0.2-preview.3 | 103 | 8/16/2025 |
| 3.0.2-preview.1 | 82 | 5/23/2025 |
| 3.0.1 | 4,825 | 3/12/2025 |
| 3.0.1-preview.2 | 152 | 3/11/2025 |
| 3.0.1-preview.1 | 88 | 2/5/2025 |
| 3.0.0.2-preview | 124 | 12/10/2024 |
| 3.0.0.1-preview | 147 | 6/29/2024 |
| 3.0.0 | 4,696 | 12/10/2024 |
| 3.0.0-preview | 152 | 6/28/2024 |
| 2.0.0.17 | 1,992 | 4/17/2024 |
| 2.0.0.16 | 3,433 | 12/15/2023 |
| 2.0.0.15 | 223 | 12/15/2023 |
| 2.0.0.11 | 3,809 | 8/11/2022 |
| 2.0.0.10 | 2,695 | 7/20/2022 |
| 2.0.0.9 | 2,770 | 7/15/2022 |
| 2.0.0.8 | 2,800 | 7/12/2022 |
| 2.0.0.7 | 2,727 | 6/20/2022 |
| 2.0.0.6 | 2,809 | 5/23/2022 |
| 2.0.0.5 | 2,768 | 5/18/2022 |
| 2.0.0 | 2,884 | 2/17/2022 |