Myth.Repository.EntityFramework 3.0.4-preview.1

This is a prerelease version of Myth.Repository.EntityFramework.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Myth.Repository.EntityFramework --version 3.0.4-preview.1
                    
NuGet\Install-Package Myth.Repository.EntityFramework -Version 3.0.4-preview.1
                    
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="Myth.Repository.EntityFramework" Version="3.0.4-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Myth.Repository.EntityFramework" Version="3.0.4-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Myth.Repository.EntityFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Myth.Repository.EntityFramework --version 3.0.4-preview.1
                    
#r "nuget: Myth.Repository.EntityFramework, 3.0.4-preview.1"
                    
#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.
#:package Myth.Repository.EntityFramework@3.0.4-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Myth.Repository.EntityFramework&version=3.0.4-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Myth.Repository.EntityFramework&version=3.0.4-preview.1&prerelease
                    
Install as a Cake Tool

Myth.Repository.EntityFramework

NuGet Version NuGet Version

License

pt-br en

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 provider
  • AsQueryable: Returns a collection for execution in the database
  • AsEnumerable: Returns a collection for execution in memory]
  • ToListAsync: Returns all items in the collection
  • Where: Returns the collection with a filter
  • SearchAsync: Returns the filtered collection
  • SearchPaginatedAsync: Returns the filtered and paginated collection
  • CountAsync: Counts the items in the collection
  • AnyAsync: Checks if any item in the collection meets a requirement
  • AllAsync: Checks whether all items in the collection meet a requirement
  • FirstOrDefaultAsync: Returns the first item in the collection
  • LastOrDefaultAsync: Returns the last item in the collection

✍️ Writing

The following methods can be used for writing:

  • AddAsync: Adds an item to the collection
  • AddRangeAsync: Adds multiple items to the collection
  • RemoveAsync: Removes an item from the collection
  • RemoveRangeAsync: Removes multiple items from the collection
  • UpdateAsync: Updates a collection item
  • UpdateRangeAsync: Updates multiple items in the collection
  • AttachAsync: Attach an item to the collection
  • AttachRangeAsync: Attach multiple items to the collection
  • SaveChangesAsync: Saves all changes
  • ExecuteSqlRawAsync: Executes a query in the database

🪄 Unit of work

The entity's independent functionalities are as follows:

  • SaveChangesAsync: Saves all changes
  • ExecuteSqlRawAsync: Executes a query in the database
  • BeginTransactionAsync: Starts a transaction
  • CommitAsync: Executes all transaction changes
  • RollbackAsync: Undoes transaction changes
  • CreateSavepointAsync: Creates a transaction checkpoint
  • RollbackToSavepointAsync: Returns to a t'ransaction checkpoint
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 128 12/22/2025
4.2.1-preview.1 619 12/2/2025
4.2.0 434 11/30/2025
4.2.0-preview.1 69 11/29/2025
4.1.0 347 11/27/2025
4.1.0-preview.3 130 11/27/2025
4.1.0-preview.2 127 11/27/2025
4.1.0-preview.1 130 11/26/2025
4.0.1 180 11/22/2025
4.0.1-preview.8 148 11/22/2025
4.0.1-preview.7 161 11/22/2025
4.0.1-preview.6 141 11/22/2025
4.0.1-preview.5 200 11/21/2025
4.0.1-preview.4 210 11/21/2025
4.0.1-preview.3 219 11/21/2025
4.0.1-preview.2 240 11/21/2025
4.0.1-preview.1 249 11/21/2025
4.0.0 410 11/20/2025
4.0.0-preview.3 346 11/19/2025
4.0.0-preview.2 91 11/15/2025
4.0.0-preview.1 109 11/15/2025
3.10.0 183 11/15/2025
3.0.5-preview.15 151 11/14/2025
3.0.5-preview.14 229 11/12/2025
3.0.5-preview.13 228 11/12/2025
3.0.5-preview.12 227 11/11/2025
3.0.5-preview.11 228 11/11/2025
3.0.5-preview.10 227 11/11/2025
3.0.5-preview.9 221 11/10/2025
3.0.5-preview.8 93 11/8/2025
3.0.5-preview.7 90 11/8/2025
3.0.5-preview.6 93 11/8/2025
3.0.5-preview.5 94 11/8/2025
3.0.5-preview.4 68 11/7/2025
3.0.5-preview.3 135 11/4/2025
3.0.5-preview.2 146 11/4/2025
3.0.5-preview.1 137 11/4/2025
3.0.4 214 11/3/2025
3.0.4-preview.19 79 11/2/2025
3.0.4-preview.17 78 11/1/2025
3.0.4-preview.16 83 11/1/2025
3.0.4-preview.15 75 10/31/2025
3.0.4-preview.14 141 10/31/2025
3.0.4-preview.13 139 10/30/2025
3.0.4-preview.12 131 10/23/2025
3.0.4-preview.11 128 10/23/2025
3.0.4-preview.10 125 10/23/2025
3.0.4-preview.9 124 10/23/2025
3.0.4-preview.8 129 10/22/2025
3.0.4-preview.6 124 10/21/2025
3.0.4-preview.5 120 10/21/2025
3.0.4-preview.4 128 10/20/2025
3.0.4-preview.3 126 10/20/2025
3.0.4-preview.2 47 10/18/2025
3.0.4-preview.1 129 10/7/2025
3.0.3 246 8/30/2025
3.0.2 144 8/23/2025
3.0.2-preview.4 136 8/21/2025
3.0.2-preview.3 110 8/16/2025
3.0.2-preview.1 86 5/23/2025
3.0.1 6,252 3/12/2025
3.0.1-preview.2 157 3/11/2025
3.0.1-preview.1 91 2/5/2025
3.0.0.2-preview 128 12/10/2024
3.0.0.1-preview 151 6/29/2024
3.0.0 4,715 12/10/2024
3.0.0-preview 153 6/28/2024
2.0.0.17 2,009 4/17/2024
2.0.0.16 3,451 12/15/2023
2.0.0.15 242 12/15/2023
2.0.0.11 3,821 8/11/2022
2.0.0.10 2,706 7/20/2022
2.0.0.9 2,781 7/15/2022
2.0.0.8 2,809 7/12/2022
2.0.0.7 2,736 6/20/2022
2.0.0.6 2,818 5/23/2022
2.0.0.5 2,775 5/18/2022
2.0.0 2,895 2/17/2022