Acme.EFCore 3.0.0.3-alpha

This is a prerelease version of Acme.EFCore.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Acme.EFCore --version 3.0.0.3-alpha                
NuGet\Install-Package Acme.EFCore -Version 3.0.0.3-alpha                
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.0.3-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Acme.EFCore --version 3.0.0.3-alpha                
#r "nuget: Acme.EFCore, 3.0.0.3-alpha"                
#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.0.3-alpha&prerelease

// Install Acme.EFCore as a Cake Tool
#tool nuget:?package=Acme.EFCore&version=3.0.0.3-alpha&prerelease                

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.0.3-alpha

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
//调用数据库配置信息
services.AddDbContext<AppDbContext1>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
Product Compatible and additional computed target framework versions.
.NET 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. 
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.3.0 71 12/23/2024
3.2.0 81 12/18/2024
3.1.0 77 12/16/2024
3.0.9 84 12/5/2024
3.0.8 131 11/13/2024
3.0.0.3-alpha 94 11/12/2024
3.0.0.2-alpha 97 11/11/2024
3.0.0.1-alpha 93 11/11/2024
2.1.0.2 223 3/19/2024
2.1.0.1 159 3/15/2024
2.0.2.5 175 2/29/2024
2.0.2.4 172 2/26/2024
2.0.2.3 187 2/7/2024
2.0.2.2 175 2/7/2024
2.0.2.1 170 2/1/2024
2.0.1.5 161 1/31/2024
2.0.1.4 160 1/31/2024
2.0.1.3 162 1/31/2024
2.0.1.2 161 1/31/2024
2.0.1 158 1/31/2024
1.1.5 157 1/31/2024
1.1.4.2 171 1/31/2024
1.1.4 159 1/31/2024
1.1.3 161 1/31/2024
1.1.2 247 12/19/2023
1.1.1 226 12/5/2023

A brand new version of Acme EFCore (document to be released)