Acme.EFCore.Small 1.2.8.4

dotnet add package Acme.EFCore.Small --version 1.2.8.4                
NuGet\Install-Package Acme.EFCore.Small -Version 1.2.8.4                
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.4" />                
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.4                
#r "nuget: Acme.EFCore.Small, 1.2.8.4"                
#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.4

// Install Acme.EFCore.Small as a Cake Tool
#tool nuget:?package=Acme.EFCore.Small&version=1.2.8.4                

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.4

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.4 73 2/7/2025
1.2.8.3 115 12/25/2024
1.2.8.3-alpha 92 12/25/2024
1.2.8.2 111 12/20/2024
1.2.8.1 102 12/19/2024
1.2.8 121 11/13/2024
1.2.7.2 126 11/7/2024
1.2.7.1 127 10/11/2024
1.2.7.1-alpha 86 9/20/2024
1.2.7 118 10/11/2024
1.2.7-alpha 99 9/20/2024
1.2.6 133 9/14/2024
1.2.5.9 146 8/9/2024
1.2.5.8 144 8/9/2024
1.2.5.7 134 7/19/2024
1.2.5.6 127 6/3/2024
1.2.5.6-rc 116 5/30/2024
1.2.5.6-alpha 127 5/29/2024
1.2.5.5 116 6/3/2024
1.2.5.5-alpha 120 5/29/2024
1.2.5.4 136 5/29/2024
1.2.5.3 127 5/29/2024
1.2.5.2 140 5/11/2024
1.2.5.1 160 4/22/2024
1.2.5 146 4/22/2024
1.2.4.9 150 4/22/2024
1.2.4.8 138 4/19/2024
1.2.4.7 144 4/11/2024
1.2.4.6 144 4/10/2024
1.2.4.5 140 4/10/2024
1.2.4.4 142 4/9/2024
1.2.4.3 143 4/9/2024
1.2.4.2 144 4/8/2024
1.2.4.1 150 4/7/2024
1.2.3.9 144 4/7/2024
1.2.3.8 150 4/8/2024
1.2.3.7 134 4/9/2024
1.2.3.6 127 4/9/2024
1.2.3.5 148 4/8/2024
1.2.3.4 147 4/8/2024
1.2.3.3 148 4/8/2024
1.2.3.2 147 4/7/2024
1.2.3.1 151 4/7/2024
1.2.3 148 4/7/2024
1.2.2.9 147 4/7/2024
1.2.2.8 150 4/7/2024
1.2.2.7 142 4/7/2024
1.2.2.6 154 4/2/2024
1.2.2.5 147 4/2/2024
1.2.2.4 152 3/29/2024
1.2.2.3 152 3/29/2024
1.2.2.2 144 3/27/2024
1.2.2.1 157 3/27/2024
1.2.1 145 3/27/2024
1.2.0.9 152 3/26/2024
1.2.0.8 158 3/26/2024
1.2.0.7 145 3/26/2024
1.2.0.6 165 3/26/2024
1.2.0.5 153 3/26/2024
1.2.0.4 152 3/25/2024
1.2.0.3 149 3/25/2024
1.2.0.2 152 3/25/2024
1.2.0.1 154 3/20/2024
1.1.0.5 148 3/25/2024
1.1.0.1 162 3/20/2024
1.0.5 109 12/20/2024
1.0.4 108 12/19/2024
1.0.3.9 141 4/19/2024
1.0.3.8 139 4/19/2024
1.0.3.7 139 4/19/2024
1.0.3.6 140 4/19/2024
1.0.3.5 169 4/7/2024
1.0.3.4 160 4/7/2024
1.0.3.3 150 4/2/2024
1.0.3.2 162 4/2/2024
1.0.3.1 149 3/31/2024
1.0.0.1 156 3/20/2024

更新.NET9 EntityFrameworkCore版本为9.0.1