Crping.EFCore.Common 7.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Crping.EFCore.Common --version 7.3.0
                    
NuGet\Install-Package Crping.EFCore.Common -Version 7.3.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.Common" Version="7.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Crping.EFCore.Common" Version="7.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Crping.EFCore.Common" />
                    
Project file
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.Common --version 7.3.0
                    
#r "nuget: Crping.EFCore.Common, 7.3.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.Common@7.3.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.Common&version=7.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Crping.EFCore.Common&version=7.3.0
                    
Install as a Cake Tool

Crping.EFCore.Common

Crping.EFCore的接口与类型定义

版本更新说明


7.3.0

2026年7月30日 星期三

Crping.EFCore / Crping.EFCore.Controller 同步升至 7.3.0

破坏性变更 — 时间类型从 DateTime 改为 DateTimeOffset

  • IModel<TKey>.CreatedAtDateTimeDateTimeOffset
  • IUpdatedAt.UpdatedAtDateTime?DateTimeOffset?
  • IDeletedAt.DeletedAtDateTime?DateTimeOffset?
  • IDelete<T>.DeletedAtDateTime?DateTimeOffset?
  • IAuditor<T,U>.AuditedAtDateTime?DateTimeOffset?
  • ICreatedDate.CreatedDateDateTimeDateTimeOffset
  • ICreatedTime.CreatedTimeDateTimeDateTimeOffset
  • IStartTime.StartTimeDateTime?DateTimeOffset?
  • IStartDate.StartDateDateTime?DateTimeOffset?
  • IEndDate.EndDateDateTime?DateTimeOffset?
  • IEndTime.EndTimeDateTime?DateTimeOffset?

其他变更

  • IParent<T>:支持可空类型参数(如 IParent<int?>),根节点可使用 null

迁移指南

  • 将实体中的 DateTime 属性改为 DateTimeOffset
  • DateTime.Now 改为 DateTimeOffset.Now
  • 数据库列类型从 datetime2 改为 datetimeoffset

7.2.0

2026年7月28日 星期一

Crping.EFCore / Crping.EFCore.Controller 同步升至 7.2.0

新增接口

  • IAppConfiguration:应用配置引用接口,提供 IConfiguration 实例,语义比 IDbConfiguration 更准确

重命名(向后兼容)

  • IMyConfigurationIAppConfiguration:旧接口标记 [Obsolete] 并继承新接口
  • IDbConfiguration:已删除(上一版本新增,因命名不当移除)

7.1.0

2026年7月28日 星期一

Crping.EFCore / Crping.EFCore.Controller 同步升至 7.1.0

新增接口

  • IViewObject:视图对象输出接口,替代 IToVo
  • IDbConfiguration:数据库配置接口,替代 IMyConfiguration

重命名(向后兼容 — 旧接口标记 [Obsolete]

  • IToVoIViewObject:旧接口保留并继承新接口,编译时产生 CS0618 警告
  • IMyConfigurationIDbConfiguration:旧接口保留并继承新接口
  • IEnabledIIsEnabled:旧接口标记 [Obsolete](属性名 Enabled vs IsEnabled 不同,无法继承)
  • IDisabledIIsDisabled:旧接口标记 [Obsolete]

7.0.0

2026年7月26日 星期日

Crping.EFCore / Crping.EFCore.Controller 同步升至 7.0.0

  • 修复:ModelWithName.Name setter 增加 null 防护 — 之前 value.Trim()valuenull 时会抛 NullReferenceException,现改为 value?.Trim() ?? string.Empty
  • 清理:删除 3 个全注释死代码文件(破坏性变更 — 下游若手动引用这些类型会编译失败)
    • Models/GenericConverter.cs
    • Models/UserKey.cs
    • Enums/TaskState.cs
  • 内部:DateTime.Now → DateTime.UtcNow 改造(ModelBase.CreatedAt / EFCoreExt.UpdateTo)曾被提交后又完整回退,净状态未变

6.4.0

2026年7月16日 星期四
  • 优化所有命名空间
  • 调整项目目录结构:Crping.EFCore.* 项目统一嵌套到 Crping.EFCore/

6.0.0

2025年11月27日 星期四
  • 升级为 .net10.0

5.5.0

2025年10月21日 星期二
  • 新增扩展方法NotDisabled(...), NotIsDisabled(...), OnlyEnabled(...), OnlyIsEnabled(...)

5.4.0

2025年9月25日 星期四
  • 新增接口IDeletedAt, IAuditor, IAudit

5.3.0

2025年7月8日 星期二
  • 新增过滤软删除扩展方法NotSoftDeleted

5.2.1

2025年6月29日 星期日
  • 新增接口IAddress<T>

5.2.0

2025年5月22日 星期四
  • 新增接口ISoftDelete

5.1.0

2025年4月19日 星期六
  • 新增接口:IContents<T>ITitle<T>

5.0.0

2024年11月17日 星期日
  • 升级为 .net9.0
  • 更新引用组件

4.5.0

2024年10月19日 星期六
  • 接口 IKey<TId>IModel<TKey> 默认类型改为 string

4.3.0

2024年4月12日 星期五
  • 新增接口ISortIndex<T>IIsEnabled

4.2.0

2024年4月9日 星期二
  • 新增接口IToolkit

4.1.0

2024年3月28日 星期四
  • 修改:Cascader<TKey>Cascade<TKey>
  • 新增接口:IAccountIAvatarIEmailIIsDisabledIPhoneNumber

4.0.1

2024年3月21日 星期四
  • 移除ICreateTKeynotnull约束

4.0.0

2024年1月27日 星期六
  • 升级目标框架为.net8.0
  • 升级Microsoft.Extensions.Configuration.Abstractions8.0
  • 与系列相关组件对齐版本号

3.20.1

2023-08-22
  • 接口ICreatedDateICreatedTime的日期改为不为空

3.20.0

2023-07-24
  • 新增接口IUpdatedAt
  • 修改接口IUpdate<TUserKey>

3.19.0

2023-06-29
  • 为所有泛型参数TKey添加约束notnull
  • 重命名部分泛型参数
  • 新增接口IUpdate<TKey>IDelete<TKey

3.18.0

2023-06-11
  • 新增接口IKeysetPagination,以及实现类KeysetPagination
  • 新增扩展方法GetValue(...)

3.17.0

2023-06-07
  • 新增升序扩展方法Ascending(...)
  • 新增降序扩展方法Descending(...)

3.16.0

2023-05-21
  • 新增接口ICreator<TUser, TKey>

3.15.0

2023-05-11
  • 新增接口IToVo

3.14.0

2023-05-10
  • IIntro修改为可空
  • 修改日期时间相关接口的数据类型为DateTime?
  • 新增接口INickname
  • 修改接口IUserNameIUsername

3.13.0

2023-05-10
  • 新增接口:IUpdater<T>IDeleter<T>IAddress

3.12.0

2023-04-26
  • 新增接口:IParent<T>
  • 新增实体:Cascader<TKey>

3.11.0

2023-04-20
  • 新增接口ICreate<T>

3.10.0

2023-04-15
  • 项目启用可空类型
  • 修复启用可空类型后产生警告的代码
  • 新增接口ICreator
  • 修改接口IConnectionStringIMyConfiguration

3.8.0

2023-03-28
  • Crping.EFCore移入接口IConnectionString,IMyConfiguration

3.7.0

2023-02-18
  • 新增接口IKeysetPagination与类KeysetPagination

3.6.0

2023-02-03
  • 将运行时修改为net7.0

3.5.1

2023-01-03
  • 新增接口:IKey:IKey<int>

3.5.0

2023-01-03
  • 新增接口IKey<>,并添加到IModel<>
  • 新增全局引用Global,并优化所有代码

3.4.0

2022-05-18
  • 修改 IPagination 和 Pagination 的排序方式字段

历史版本

  • 3.4.0:修改 IPagination 和 Pagination 的排序方式字段
  • 3.3.0:添加IGender,IIntro等一系列常用接口
  • 3.2.1:重命名接口ICreatedDate,ICreatedTime,并修改其属性类型
  • 3.2.0:添加枚举ProcessingStatus,接口IProcessingStatus
  • 3.1.4:优化JsonPropertyOrder值
  • 3.1.3:为属性添加JsonPropertyOrder
  • 3.1.2:为Name属性添加字段长度限制
  • 3.1.1:为属性添加[Column(Order = 0)]等
  • 3.1.0:添加ModelBase,IName,ModelWithName等
  • 3.0.2:Utils类改为EFCoreEx
  • 3.0.1:修改PaginationData,以适应Dapr反序列化
  • 3.0.0:目标框架改为.net6.0
  • 1.1.3:还原Pagination的部分修改
  • 1.1.2:修复Pagination的Bug
  • 1.1.1:优化Pagination的CountPages()方法
  • 1.1.0:Pagination 添加 QueryString 属性
  • 1.0.0:提供 Crping.EFCore 组件所需基础类接口等
2022-04-01
  1. 重命名接口ICreatedDate,ICreatedTime,并修改其属性类型
  2. 添加一系列常用接口
2022-03-14
  1. 添加枚举:ProcessingStatus
  2. 添加接口:IProcessingStatus
2022-02-28
  1. 添加ModelBase<T>,ModelBase
  2. 添加IName, ModelWithName<T>,ModelWithName
  3. 为属性添加[Column(Order = 0)]等
  4. 为Name属性添加字段长度限制
  5. 为属性添加:JsonPropertyOrder
  6. 优化Column(Order = 0),JsonPropertyOrder
Product 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.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Crping.EFCore.Common:

Package Downloads
Crping.EFCore

基于 `EntityFramework Core` 的数据库操作工具包基础类

Crping.Auth.Models

Crping.Auth 实体数据结构

Crping.Auth.DAL

Crping.Auth.DAL 基类

Crping.AuthPolicy.BLL

Package Description

Crping.AuthPolicy.Models

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.5.0 0 8/6/2026
7.4.0 69 8/3/2026
7.3.0 110 7/30/2026
7.2.0 108 7/28/2026
7.1.0 108 7/28/2026
7.0.0 112 7/26/2026
6.4.0 459 12/31/2025
6.0.0 341 11/27/2025
5.5.0 288 10/21/2025
5.4.0 309 9/25/2025
5.3.0 356 7/8/2025
5.2.1 242 6/29/2025
5.2.0 384 5/22/2025
5.1.0 389 4/19/2025
5.0.0 454 11/17/2024
4.5.0 527 10/19/2024
4.4.0 371 9/15/2024 4.4.0 is deprecated because it has critical bugs.
4.3.0 746 4/12/2024
4.2.0 369 4/9/2024
4.1.0 562 3/28/2024
Loading failed

7.3.0 · 2026-07-30
所有时间属性从 DateTime 改为 DateTimeOffset,支持时区感知
IParent<T> 支持可空类型参数