Myth.Repository.EntityFramework
3.0.0-preview
See the version list below for details.
dotnet add package Myth.Repository.EntityFramework --version 3.0.0-preview
NuGet\Install-Package Myth.Repository.EntityFramework -Version 3.0.0-preview
<PackageReference Include="Myth.Repository.EntityFramework" Version="3.0.0-preview" />
<PackageVersion Include="Myth.Repository.EntityFramework" Version="3.0.0-preview" />
<PackageReference Include="Myth.Repository.EntityFramework" />
paket add Myth.Repository.EntityFramework --version 3.0.0-preview
#r "nuget: Myth.Repository.EntityFramework, 3.0.0-preview"
#:package Myth.Repository.EntityFramework@3.0.0-preview
#addin nuget:?package=Myth.Repository.EntityFramework&version=3.0.0-preview&prerelease
#tool nuget:?package=Myth.Repository.EntityFramework&version=3.0.0-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-preview)
- Myth.Specification (>= 3.0.0-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 |
|---|---|---|
| 4.3.0-preview.2 | 122 | 12/22/2025 |
| 4.2.1-preview.1 | 618 | 12/2/2025 |
| 4.2.0 | 421 | 11/30/2025 |
| 4.2.0-preview.1 | 64 | 11/29/2025 |
| 4.1.0 | 223 | 11/27/2025 |
| 4.1.0-preview.3 | 126 | 11/27/2025 |
| 4.1.0-preview.2 | 123 | 11/27/2025 |
| 4.1.0-preview.1 | 128 | 11/26/2025 |
| 4.0.1 | 168 | 11/22/2025 |
| 4.0.1-preview.8 | 145 | 11/22/2025 |
| 4.0.1-preview.7 | 157 | 11/22/2025 |
| 4.0.1-preview.6 | 137 | 11/22/2025 |
| 4.0.1-preview.5 | 199 | 11/21/2025 |
| 4.0.1-preview.4 | 207 | 11/21/2025 |
| 4.0.1-preview.3 | 215 | 11/21/2025 |
| 4.0.1-preview.2 | 237 | 11/21/2025 |
| 4.0.1-preview.1 | 246 | 11/21/2025 |
| 4.0.0 | 399 | 11/20/2025 |
| 4.0.0-preview.3 | 342 | 11/19/2025 |
| 4.0.0-preview.2 | 90 | 11/15/2025 |
| 4.0.0-preview.1 | 107 | 11/15/2025 |
| 3.10.0 | 172 | 11/15/2025 |
| 3.0.5-preview.15 | 148 | 11/14/2025 |
| 3.0.5-preview.14 | 225 | 11/12/2025 |
| 3.0.5-preview.13 | 225 | 11/12/2025 |
| 3.0.5-preview.12 | 224 | 11/11/2025 |
| 3.0.5-preview.11 | 225 | 11/11/2025 |
| 3.0.5-preview.10 | 224 | 11/11/2025 |
| 3.0.5-preview.9 | 217 | 11/10/2025 |
| 3.0.5-preview.8 | 90 | 11/8/2025 |
| 3.0.5-preview.7 | 89 | 11/8/2025 |
| 3.0.5-preview.6 | 90 | 11/8/2025 |
| 3.0.5-preview.5 | 91 | 11/8/2025 |
| 3.0.5-preview.4 | 64 | 11/7/2025 |
| 3.0.5-preview.3 | 132 | 11/4/2025 |
| 3.0.5-preview.2 | 142 | 11/4/2025 |
| 3.0.5-preview.1 | 134 | 11/4/2025 |
| 3.0.4 | 200 | 11/3/2025 |
| 3.0.4-preview.19 | 75 | 11/2/2025 |
| 3.0.4-preview.17 | 75 | 11/1/2025 |
| 3.0.4-preview.16 | 79 | 11/1/2025 |
| 3.0.4-preview.15 | 72 | 10/31/2025 |
| 3.0.4-preview.14 | 140 | 10/31/2025 |
| 3.0.4-preview.13 | 135 | 10/30/2025 |
| 3.0.4-preview.12 | 129 | 10/23/2025 |
| 3.0.4-preview.11 | 125 | 10/23/2025 |
| 3.0.4-preview.10 | 122 | 10/23/2025 |
| 3.0.4-preview.9 | 120 | 10/23/2025 |
| 3.0.4-preview.8 | 126 | 10/22/2025 |
| 3.0.4-preview.6 | 119 | 10/21/2025 |
| 3.0.4-preview.5 | 118 | 10/21/2025 |
| 3.0.4-preview.4 | 123 | 10/20/2025 |
| 3.0.4-preview.3 | 123 | 10/20/2025 |
| 3.0.4-preview.2 | 44 | 10/18/2025 |
| 3.0.4-preview.1 | 126 | 10/7/2025 |
| 3.0.3 | 232 | 8/30/2025 |
| 3.0.2 | 129 | 8/23/2025 |
| 3.0.2-preview.4 | 134 | 8/21/2025 |
| 3.0.2-preview.3 | 107 | 8/16/2025 |
| 3.0.2-preview.1 | 84 | 5/23/2025 |
| 3.0.1 | 5,736 | 3/12/2025 |
| 3.0.1-preview.2 | 153 | 3/11/2025 |
| 3.0.1-preview.1 | 89 | 2/5/2025 |
| 3.0.0.2-preview | 126 | 12/10/2024 |
| 3.0.0.1-preview | 148 | 6/29/2024 |
| 3.0.0 | 4,706 | 12/10/2024 |
| 3.0.0-preview | 153 | 6/28/2024 |
| 2.0.0.17 | 2,000 | 4/17/2024 |
| 2.0.0.16 | 3,441 | 12/15/2023 |
| 2.0.0.15 | 233 | 12/15/2023 |
| 2.0.0.11 | 3,815 | 8/11/2022 |
| 2.0.0.10 | 2,703 | 7/20/2022 |
| 2.0.0.9 | 2,777 | 7/15/2022 |
| 2.0.0.8 | 2,806 | 7/12/2022 |
| 2.0.0.7 | 2,733 | 6/20/2022 |
| 2.0.0.6 | 2,816 | 5/23/2022 |
| 2.0.0.5 | 2,774 | 5/18/2022 |
| 2.0.0 | 2,892 | 2/17/2022 |