Common.EFCore.SQLServer
                              
                            
                                1.4.0
                            
                        
                    
        
        
                                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 Common.EFCore.SQLServer --version 1.4.0
NuGet\Install-Package Common.EFCore.SQLServer -Version 1.4.0
        
        
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="Common.EFCore.SQLServer" Version="1.4.0" />
        
        
For projects that support PackageReference, copy this XML node into the project file to reference the package.
                    
    
    <PackageVersion Include="Common.EFCore.SQLServer" Version="1.4.0" />
<PackageReference Include="Common.EFCore.SQLServer" />
        
        
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
                    
    
    paket add Common.EFCore.SQLServer --version 1.4.0
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    #r "nuget: Common.EFCore.SQLServer, 1.4.0"
        
        
#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.
                    
    
    #:package Common.EFCore.SQLServer@1.4.0
        
        
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
                    
    
    #addin nuget:?package=Common.EFCore.SQLServer&version=1.4.0
#tool nuget:?package=Common.EFCore.SQLServer&version=1.4.0
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    Common.EFCore.SQLServer
操作例子
services.AddEntityFramework<AuthDbContext>(options =>
{
    options.ConnectionString = connectionString;
    options.Schema = "auth";
});
版本更新记录
- 1.4.0 - 调整目录
 
- 1.4.0-beta3 - 支持AddDbContextFactory
- IBaseRepository支持指定DbContext
 
- 1.4.0-beta2 - 移除针对netstandard2.1版本的支持
 
- 1.4.0-beta1 - 支持.Net9
 
- 1.3.0 - 增加PostgreRepository继承自BaseRepository和IBaseRepository
- 支持.net7、.net8
- 增加默认注入IUnitOfWork
 
- 1.0.0-beta3 - 升级包版本,支持.net5和.net6
 
- 1.1.0-beta2 - 增加非追踪
 
- 1.0.0-beta1 - 修改注入方法名称为AddEntityFramework
 
- 0.0.3 - 更新分页入参
 
- 0.0.2 - 封装简单方法
 
| 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. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. | 
        
        Compatible target framework(s)
    
    
        
        Included target framework(s) (in package)
    
    Learn more about Target Frameworks and .NET Standard.
- 
                                                    net6.0- Common.EFCore (>= 1.4.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Zack.EFCore.Batch.MSSQL_NET6 (>= 6.1.3)
 
- 
                                                    net7.0- Common.EFCore (>= 1.4.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 7.0.0)
- Microsoft.Extensions.Logging.Console (>= 7.0.0)
 
- 
                                                    net8.0- Common.EFCore (>= 1.4.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.0)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
 
- 
                                                    net9.0- Common.EFCore (>= 1.4.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.0)
- Microsoft.Extensions.Logging.Console (>= 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.4.2 | 229 | 8/26/2025 | 
| 1.4.1 | 139 | 8/17/2025 | 
| 1.4.0 | 180 | 8/13/2025 | 
| 1.4.0-beta3 | 167 | 8/12/2025 | 
| 1.4.0-beta2 | 539 | 7/23/2025 | 
| 1.4.0-beta1 | 115 | 3/1/2025 | 
| 1.3.0 | 162 | 8/11/2024 | 
| 1.0.0-beta3 | 269 | 9/8/2022 | 
| 1.0.0-beta2 | 282 | 6/19/2022 | 
| 0.0.3 | 595 | 12/16/2021 | 
| 0.0.2 | 529 | 11/18/2021 | 
| 0.0.1 | 503 | 11/18/2021 |