Crping.EFCore.Controller
6.1.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 Crping.EFCore.Controller --version 6.1.0
NuGet\Install-Package Crping.EFCore.Controller -Version 6.1.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="Crping.EFCore.Controller" Version="6.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Crping.EFCore.Controller" Version="6.1.0" />
<PackageReference Include="Crping.EFCore.Controller" />
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 Crping.EFCore.Controller --version 6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Crping.EFCore.Controller, 6.1.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 Crping.EFCore.Controller@6.1.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=Crping.EFCore.Controller&version=6.1.0
#tool nuget:?package=Crping.EFCore.Controller&version=6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Crping.EFCore.Controller
基于Crping.EFCore的WebApi的增、删、改、查、分页等常用方法实现!
版本更新说明
6.1.0
2025年12月25日 星期四
- 将方法禁用控制改为启动控制,默认禁用所有默认方法
6.0.0
2025年11月27日 星期四
- 升级为
.net10.0
5.1.0
2025年5月23日 星期五
- 新增方法
SoftDeleteAsync(...)
5.0.0
2024年11月17日 星期日
- 升级为
.net9.0 - 更新引用组件,并清理替换弃用的组件
4.11.0
2024年11月16日 星期六
- 新增类
ExceptionMiddleware,ExceptionFilter
4.10.0
2024年11月16日 星期六
AuthenticationHeaderValue修改为AuthHeaderValueGetAuthenticationHeaderValue()修改为GetAuthHeaderValue()- 新增类
MethodDisable以配置默认方法是否可用 - 为所有默认方法添加是否可用的控制
4.9.0
2024年11月14日 星期四
WebApiBaseController新增方法GetAuthenticationHeaderValue()以及属性AuthenticationHeaderValue
4.8.0
2024年11月14日 星期四
WebApiBaseController新增方法GetAuthorization()以及属性Authorization
4.7.0
2024年10月11日 星期五
- 优化构造方法
WebApiBaseController,并添加对SyncConfig()的调用
4.5.0
2024年7月17日 星期三
- 新增
Migrate(),EnsureCreated(...)
4.4.0
2024年4月13日 星期六
WebApiBaseController新增TDomain,并修改相关子类
4.3.0
2024年4月7日 星期日
- 新增领域对象属性
DO,并更名_dom_为_do
4.2.0
2024年4月7日 星期日
Controller相关类添加IDomain接口属性_dom_
4.1.0
2024年3月28日 星期四
- 新增:
WebApiBaseController,WebApiForIntController,WebApiForLongController
4.0.0
2024年1月27日 星期六
- 升级目标框架为
.net8.0 - 升级
Microsoft.Extensions.Configuration.Abstractions为8.0 - 与系列相关组件对齐版本号
3.19.0
2023-06-29
- 为所有泛型参数
TKey添加约束notnull - 为
MvcController的用户权限操作添加泛型TUserKey,并修改相关属性与方法,并重构GetCurrentUserId() - 为
WebApiController的用户权限操作添加泛型TUserKey,并修改相关属性与方法,并重构GetCurrentUserId() - 为
WebApiVersionController的用户权限操作添加泛型TUserKey,并修改相关属性与方法,并重构GetCurrentUserId()
3.18.0
2023-06-05
- 新增跨域管理:
CrossDomainSetup
3.17.0
2023-05-13
- 新增方法:
UseAuthSwaggerWithVersion()
3.16.0
2023-04-21
- 方法
UseAuthSwagger(...)去除参数,在内部通过DI获取所需数据 - 优化方法
AddAuthSwagger(...)
3.15.0
2023-04-15
- 项目启动可空类型
- 新增方法:
AddApiVersion - 新增属性:
BLL,Logger,Cache,并修改相关方法
3.12.0
2023-03-05
- 重命名创建与修改相关
API默认方法名
3.11.0
2023-02-24
GetTotalAsync新增参数lastDays
3.10.0
2023-02-08
- 新增
SwaggerExt类,新增方法AddAuthSwagger,UseAuthSwagger
3.9.0
2023-02-03
- 将运行时修改为
net7.0
3.8.0
2023-01-13
WebApiController新增方法Task<IActionResult> GetTotalAsync()WebApiVersionController新增方法Task<IActionResult> GetTotalAsync()
3.7.0
2023-01-03
- 新增全局引用
Global,并优化所有引用 - 优化所有命名空间,并更新对组件的引用
3.6.1
2022-12-09
- 删除MvcController中默认的
Index方法
3.6.0
2022-12-09
- 新增
MvcController
3.5.0
2022-11-23
- 升级
Swashbuckle.AspNetCore.SwaggerGen到6.4.0 - 更新对
Crping.EFCore 3.9.0的引用,使用EFCore 7.0.0
历史版本
- 3.4.1:更新引用组件版本
- 3.4.0:适配Crping.EFCore的更新,删除IRelatedBLL相关方法的使用
- 3.3.0:更新对Crping.EFCore 及 Common的引用,并对齐版本号
- 3.0.1:给方法添加判空逻辑
- 3.0.0:目标框架改为.net6.0
- 2.0.1:升级Swagger相关组件
- 2.0.0:与 Crping.EFCore 2.0 版本号对齐(EFCore 重大改版!!!)
- 1.2.1:更新对Crping.EFCore的引用
- 1.2.0:添加_bll.SetCurrentUserForRelatedBLL(GetCurrentUserId);
- 1.1.0:升级对Crping.EFCore的引用
- 1.0.0:支持普通WebApi,带版本控制WebApi
==注意:==
Crping.EFCore升级后,此组件需重新打包,保持对Crping.EFCore引用的同步更新,否则会出现“==方法未找到==”的问题
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Crping.EFCore (>= 6.2.0)
- NSwag.AspNetCore (>= 14.6.3)
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 | |
|---|---|---|---|
| 6.7.0 | 88 | 2/26/2026 | |
| 6.6.0 | 108 | 2/6/2026 | |
| 6.5.0 | 99 | 2/6/2026 | |
| 6.4.0 | 149 | 12/31/2025 | |
| 6.3.0 | 134 | 12/27/2025 | |
| 6.1.0 | 202 | 12/25/2025 | |
| 6.0.0 | 220 | 11/27/2025 | |
| 5.1.0 | 302 | 5/23/2025 | |
| 5.0.0 | 301 | 11/17/2024 | |
| 4.11.0 | 224 | 11/16/2024 | |
| 4.10.0 | 221 | 11/16/2024 | |
| 4.9.0 | 228 | 11/14/2024 | |
| 4.8.0 | 227 | 11/14/2024 | |
| 4.7.0 | 267 | 10/11/2024 | |
| 4.6.0 | 301 | 9/15/2024 | |
| 4.5.0 | 271 | 7/17/2024 | |
| 4.4.0 | 324 | 4/12/2024 | |
| 4.3.0 | 237 | 4/12/2024 | |
| 4.2.0 | 251 | 4/7/2024 | |
| 4.1.0 | 262 | 3/28/2024 |
Loading failed
基于 Crping.EFCore 的 WebApi 控制器基类