Acme.EFCore.Small
1.2.8
dotnet add package Acme.EFCore.Small --version 1.2.8
NuGet\Install-Package Acme.EFCore.Small -Version 1.2.8
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="Acme.EFCore.Small" Version="1.2.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Acme.EFCore.Small --version 1.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Acme.EFCore.Small, 1.2.8"
#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.
// Install Acme.EFCore.Small as a Cake Addin #addin nuget:?package=Acme.EFCore.Small&version=1.2.8 // Install Acme.EFCore.Small as a Cake Tool #tool nuget:?package=Acme.EFCore.Small&version=1.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Acme.EFCore.Small
1、summary
Acme.EFCore.Small is a lightweight EFCore general-purpose library designed to interact with databases using Entity Framework Core (EFCore). It serves as the fundamental component for handling various database operations. Version: v1.2.8.0
2、 Beginner's Guide
1. Install Acme EFCore.Small
Create Project →Click on References →Right click →Manage Nuget Packages →Search Acme EFCore. Small selects version 1.2.7 and above Simply install the NET version.
2. Install the corresponding database package
- SqlServer:
Microsoft.EntityFrameworkCore.SqlServer
- Sqlite:
Microsoft.EntityFrameworkCore.Sqlite
- Cosmos:
Microsoft.EntityFrameworkCore.Cosmos
- InMemoryDatabase:
Microsoft.EntityFrameworkCore.InMemory
- MySql:
Pomelo.EntityFrameworkCore.MySql
MySql.EntityFrameworkCore
- PostgreSQL:
Npgsql.EntityFrameworkCore.PostgreSQL
- Oracle:
Oracle.EntityFrameworkCore
- Firebird:
FirebirdSql.EntityFrameworkCore.Firebird
- Dm:
Microsoft.EntityFrameworkCore.Dm
4.Create VNet database context class
public class AppDbContext : DbContext
{
/// <summary>
/// Initialize database context
/// </summary>
/// <param name="options"></param>
public AppDbContext(DbContextOptions<AppDbContext> options) :
base(options)
{
}
}
5.Configure connection string
{
"ConnectionStrings":{
"DefaultConnection": "Persist Security Info=False;Data Source=.;Initial Catalog=Database Name;User ID=user;Password=password;Connect Timeout=120;Encrypt=False;"
}
}
6.Dependency injection
6.1.Basic configuration
//调用数据库配置信息
services.AddDbContext<AppDbContext1>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddBaseService();
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 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.11)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.8 | 74 | 11/13/2024 |
1.2.7.2 | 84 | 11/7/2024 |
1.2.7.1 | 91 | 10/11/2024 |
1.2.7.1-alpha | 58 | 9/20/2024 |
1.2.7 | 85 | 10/11/2024 |
1.2.7-alpha | 65 | 9/20/2024 |
1.2.6 | 98 | 9/14/2024 |
1.2.5.9 | 116 | 8/9/2024 |
1.2.5.8 | 114 | 8/9/2024 |
1.2.5.7 | 104 | 7/19/2024 |
1.2.5.6 | 97 | 6/3/2024 |
1.2.5.6-rc | 92 | 5/30/2024 |
1.2.5.6-alpha | 104 | 5/29/2024 |
1.2.5.5 | 86 | 6/3/2024 |
1.2.5.5-alpha | 98 | 5/29/2024 |
1.2.5.4 | 106 | 5/29/2024 |
1.2.5.3 | 96 | 5/29/2024 |
1.2.5.2 | 109 | 5/11/2024 |
1.2.5.1 | 130 | 4/22/2024 |
1.2.5 | 118 | 4/22/2024 |
1.2.4.9 | 122 | 4/22/2024 |
1.2.4.8 | 104 | 4/19/2024 |
1.2.4.7 | 113 | 4/11/2024 |
1.2.4.6 | 113 | 4/10/2024 |
1.2.4.5 | 110 | 4/10/2024 |
1.2.4.4 | 112 | 4/9/2024 |
1.2.4.3 | 112 | 4/9/2024 |
1.2.4.2 | 111 | 4/8/2024 |
1.2.4.1 | 121 | 4/7/2024 |
1.2.3.9 | 112 | 4/7/2024 |
1.2.3.8 | 119 | 4/8/2024 |
1.2.3.7 | 105 | 4/9/2024 |
1.2.3.6 | 98 | 4/9/2024 |
1.2.3.5 | 112 | 4/8/2024 |
1.2.3.4 | 113 | 4/8/2024 |
1.2.3.3 | 116 | 4/8/2024 |
1.2.3.2 | 118 | 4/7/2024 |
1.2.3.1 | 122 | 4/7/2024 |
1.2.3 | 116 | 4/7/2024 |
1.2.2.9 | 115 | 4/7/2024 |
1.2.2.8 | 120 | 4/7/2024 |
1.2.2.7 | 111 | 4/7/2024 |
1.2.2.6 | 127 | 4/2/2024 |
1.2.2.5 | 113 | 4/2/2024 |
1.2.2.4 | 123 | 3/29/2024 |
1.2.2.3 | 123 | 3/29/2024 |
1.2.2.2 | 116 | 3/27/2024 |
1.2.2.1 | 131 | 3/27/2024 |
1.2.1 | 116 | 3/27/2024 |
1.2.0.9 | 122 | 3/26/2024 |
1.2.0.8 | 129 | 3/26/2024 |
1.2.0.7 | 115 | 3/26/2024 |
1.2.0.6 | 137 | 3/26/2024 |
1.2.0.5 | 124 | 3/26/2024 |
1.2.0.4 | 127 | 3/25/2024 |
1.2.0.3 | 121 | 3/25/2024 |
1.2.0.2 | 124 | 3/25/2024 |
1.2.0.1 | 127 | 3/20/2024 |
1.1.0.5 | 121 | 3/25/2024 |
1.1.0.1 | 135 | 3/20/2024 |
1.0.3.9 | 109 | 4/19/2024 |
1.0.3.8 | 109 | 4/19/2024 |
1.0.3.7 | 111 | 4/19/2024 |
1.0.3.6 | 110 | 4/19/2024 |
1.0.3.5 | 138 | 4/7/2024 |
1.0.3.4 | 130 | 4/7/2024 |
1.0.3.3 | 121 | 4/2/2024 |
1.0.3.2 | 132 | 4/2/2024 |
1.0.3.1 | 121 | 3/31/2024 |
1.0.0.1 | 129 | 3/20/2024 |
首次支持.NET9,.NET8 EntityFrameworkCore版本为8.0.11