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.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net6.0
-
net7.0
-
net8.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 |
---|---|---|
3.0.8 | 55 | 11/13/2024 |
3.0.0.3-alpha | 43 | 11/12/2024 |
3.0.0.2-alpha | 78 | 11/11/2024 |
3.0.0.1-alpha | 73 | 11/11/2024 |
2.1.0.2 | 196 | 3/19/2024 |
2.1.0.1 | 133 | 3/15/2024 |
2.0.2.5 | 147 | 2/29/2024 |
2.0.2.4 | 147 | 2/26/2024 |
2.0.2.3 | 158 | 2/7/2024 |
2.0.2.2 | 146 | 2/7/2024 |
2.0.2.1 | 145 | 2/1/2024 |
2.0.1.5 | 135 | 1/31/2024 |
2.0.1.4 | 131 | 1/31/2024 |
2.0.1.3 | 135 | 1/31/2024 |
2.0.1.2 | 135 | 1/31/2024 |
2.0.1 | 132 | 1/31/2024 |
1.1.5 | 131 | 1/31/2024 |
1.1.4.2 | 144 | 1/31/2024 |
1.1.4 | 132 | 1/31/2024 |
1.1.3 | 134 | 1/31/2024 |
1.1.2 | 221 | 12/19/2023 |
1.1.1 | 201 | 12/5/2023 |
A brand new version of Acme EFCore (document to be released)