Derd 2.8.5
See the version list below for details.
dotnet add package Derd --version 2.8.5
NuGet\Install-Package Derd -Version 2.8.5
<PackageReference Include="Derd" Version="2.8.5" />
paket add Derd --version 2.8.5
#r "nuget: Derd, 2.8.5"
// Install Derd as a Cake Addin #addin nuget:?package=Derd&version=2.8.5 // Install Derd as a Cake Tool #tool nuget:?package=Derd&version=2.8.5
<div align="center"> <article style="display: flex; flex-direction: column; align-items: center; justify-content: center;"> <p align="center"><img width="256" src="http://res.dayuan.tech/images/derd.png" /></p> <p> 一款使用简单、功能强大的对象关系映射(O/RM)组件 </p> </article> </div>
🔰 简介
Derd是一个基于.net core开发的跨平台轻量级数据库操作框架。Derd模型定义文件基于XML文件格式,模型管理基于目录自动分类;数据库类型支持Sqlite、MySql、Oracle、Sqlserver、Postgresql、达梦、人大金仓等,数据库配置文件和模型定义一样基于目录划分,并支持基于目录层级的继承能力;数据操作采用链式方式,简单易用。
特点列表:
- XML格式定义模型
- JSON格式属性,像使用对象一样使用JSON
- 索引约束定义,普通索引、主键索引、组合索引...
- 关联外键定义,支持模型级深度关联
- 数据库事务支持,
- 查询方法支持链式操作,代码易写、易读、易维护
- 属性值格式约束定义&校验,模型定义同时搞定表单逻辑
- 属性值保存前自定义加工,支持动态函数处理器
- 属性值查询后自定义处理,支持动态函数处理器
- 模型增、删、改前后自定义拦截事件,轻松处理复杂逻辑
- 新建数据保存时属性是否参与保存可设置
- 更新数据保存时属性是否参与保存可设置
- 默认值设置支持自定义,支持动态函数处理器
- 查询返回dynamic动态对象,默认关联模型定义属性
📦安装
Package Manager
Install-Package Derd -Version 2.8.3
.NET CLI
dotnet add package Derd --version 2.8.3
PackageReference
<PackageReference Include="Derd" Version="2.8.3" />
Paket CLI
paket add Derd --version 2.8.3
🛠️使用说明
Derd基于微软的DbProviderFactory技术实现,根据实际使用的数据库类型,需要引入实现了对应数据库的DbProviderFactory相关接口的第三方包;已测试并验证通过的数据库第三方包对应关系如下:
数据库库类型 | 依赖包 |
---|---|
Sqlite | System.Data.SQLite |
Mysql | MySql.Data |
Oracle | Oracle.ManagedDataAccess.Core |
SqlServer | Microsoft.Data.SqlClient |
Postgres | Npgsql |
达梦 | dmdbms.DmProvider |
人大金仓 | Kdbndp |
使用时,可根据需要添加其中的一项或多项依赖。
*注:其他未列出的实现了微软DbProviderFactory接口的数据库理论上应全部支持,尚未实际验证;有兴趣的小伙伴可自己试验。
📝文档
🎈 协议
Derd 使用 MIT 协议
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- CodeM.Common.DbHelper (>= 1.1.10)
- Wukong (>= 2.0.15)
- Xmtool (>= 2.3.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.1 | 98 | 5/30/2024 |
3.0.0 | 73 | 5/11/2024 |
2.8.5 | 23 | 8/18/2024 |
2.8.3 | 80 | 5/30/2024 |
2.8.2 | 104 | 5/5/2024 |
2.8.1 | 94 | 2/28/2024 |
2.8.0 | 108 | 2/22/2024 |
2.7.12 | 92 | 2/17/2024 |
2.7.11 | 129 | 1/16/2024 |
2.7.10 | 137 | 12/22/2023 |
2.7.9 | 98 | 12/21/2023 |
2.7.7 | 164 | 11/3/2023 |
2.7.6 | 103 | 10/27/2023 |
2.7.5 | 110 | 10/16/2023 |
2.7.3 | 121 | 10/16/2023 |
2.7.0 | 102 | 10/15/2023 |
2.6.23 | 126 | 10/3/2023 |
2.6.22 | 112 | 9/28/2023 |
2.6.21 | 151 | 8/15/2023 |
2.6.20 | 158 | 8/12/2023 |
2.6.13 | 124 | 6/27/2023 |
2.6.12 | 136 | 6/25/2023 |
2.6.11 | 139 | 6/23/2023 |
2.6.0 | 150 | 6/20/2023 |
2.5.2 | 141 | 6/11/2023 |
2.5.1 | 124 | 6/11/2023 |
2.5.0 | 141 | 6/10/2023 |
2.2.17 | 147 | 5/20/2023 |
2.2.16 | 218 | 3/25/2023 |
2.2.15 | 197 | 3/24/2023 |
2.2.12 | 199 | 3/22/2023 |
2.2.11 | 215 | 3/19/2023 |
2.2.10 | 206 | 3/14/2023 |
2.2.9 | 212 | 3/10/2023 |
2.2.8 | 187 | 3/10/2023 |
2.2.7 | 213 | 3/6/2023 |
2.2.6 | 230 | 3/1/2023 |
2.2.5 | 208 | 2/14/2023 |
2.2.3 | 225 | 2/14/2023 |
2.2.2 | 219 | 2/14/2023 |
2.2.1 | 268 | 1/28/2023 |
2.2.0 | 313 | 11/3/2022 |
2.1.9 | 374 | 10/4/2022 |
2.1.8 | 426 | 9/24/2022 |
2.1.6 | 418 | 9/23/2022 |
2.1.5 | 405 | 9/19/2022 |
2.0.0 | 395 | 9/8/2022 |