Acme.EFCore 3.0.8

dotnet add package Acme.EFCore --version 3.0.8                
NuGet\Install-Package Acme.EFCore -Version 3.0.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" Version="3.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Acme.EFCore --version 3.0.8                
#r "nuget: Acme.EFCore, 3.0.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 as a Cake Addin
#addin nuget:?package=Acme.EFCore&version=3.0.8

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

Acme.EFCore

1、summary

Acme.EFCore 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: v3.0.8.0

2、 Beginner's Guide

2.1. Install Acme EFCore

Create Project →Click on References →Right click →Manage Nuget Packages →Search Acme EFCore selects version 3.0.0.3-alpha and above Simply install the NET version.

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

2.3.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)
    {
    }
}

2.3.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;"
    }
}

2.5 Dependency injection

2.6.1.Basic configuration
//Call database configuration information
services.AddDbContext<AppDbContext1>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
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 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
3.0.8 108 11/13/2024
3.0.0.3-alpha 84 11/12/2024
3.0.0.2-alpha 91 11/11/2024
3.0.0.1-alpha 88 11/11/2024
2.1.0.2 211 3/19/2024
2.1.0.1 147 3/15/2024
2.0.2.5 162 2/29/2024
2.0.2.4 160 2/26/2024
2.0.2.3 174 2/7/2024
2.0.2.2 162 2/7/2024
2.0.2.1 158 2/1/2024
2.0.1.5 149 1/31/2024
2.0.1.4 144 1/31/2024
2.0.1.3 149 1/31/2024
2.0.1.2 149 1/31/2024
2.0.1 145 1/31/2024
1.1.5 145 1/31/2024
1.1.4.2 158 1/31/2024
1.1.4 146 1/31/2024
1.1.3 148 1/31/2024
1.1.2 235 12/19/2023
1.1.1 214 12/5/2023

A brand new version of Acme EFCore