Derd 2.7.3
See the version list below for details.
dotnet add package Derd --version 2.7.3
NuGet\Install-Package Derd -Version 2.7.3
<PackageReference Include="Derd" Version="2.7.3" />
paket add Derd --version 2.7.3
#r "nuget: Derd, 2.7.3"
// Install Derd as a Cake Addin #addin nuget:?package=Derd&version=2.7.3 // Install Derd as a Cake Tool #tool nuget:?package=Derd&version=2.7.3
<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.7.3
.NET CLI
dotnet add package Derd --version 2.7.3
PackageReference
<PackageReference Include="Derd" Version="2.7.3" />
Paket CLI
paket add Derd --version 2.7.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.8)
- Xmtool (>= 2.0.15)
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 | 129 | 5/30/2024 |
3.0.0 | 93 | 5/11/2024 |
2.8.5 | 119 | 8/18/2024 |
2.8.3 | 107 | 5/30/2024 |
2.8.2 | 123 | 5/5/2024 |
2.8.1 | 131 | 2/28/2024 |
2.8.0 | 131 | 2/22/2024 |
2.7.12 | 114 | 2/17/2024 |
2.7.11 | 153 | 1/16/2024 |
2.7.10 | 180 | 12/22/2023 |
2.7.9 | 123 | 12/21/2023 |
2.7.7 | 188 | 11/3/2023 |
2.7.6 | 134 | 10/27/2023 |
2.7.5 | 135 | 10/16/2023 |
2.7.3 | 148 | 10/16/2023 |
2.7.0 | 127 | 10/15/2023 |
2.6.23 | 154 | 10/3/2023 |
2.6.22 | 137 | 9/28/2023 |
2.6.21 | 173 | 8/15/2023 |
2.6.20 | 182 | 8/12/2023 |
2.6.13 | 153 | 6/27/2023 |
2.6.12 | 162 | 6/25/2023 |
2.6.11 | 165 | 6/23/2023 |
2.6.0 | 173 | 6/20/2023 |
2.5.2 | 166 | 6/11/2023 |
2.5.1 | 150 | 6/11/2023 |
2.5.0 | 166 | 6/10/2023 |
2.2.17 | 169 | 5/20/2023 |
2.2.16 | 240 | 3/25/2023 |
2.2.15 | 219 | 3/24/2023 |
2.2.12 | 223 | 3/22/2023 |
2.2.11 | 242 | 3/19/2023 |
2.2.10 | 228 | 3/14/2023 |
2.2.9 | 233 | 3/10/2023 |
2.2.8 | 217 | 3/10/2023 |
2.2.7 | 235 | 3/6/2023 |
2.2.6 | 253 | 3/1/2023 |
2.2.5 | 233 | 2/14/2023 |
2.2.3 | 249 | 2/14/2023 |
2.2.2 | 243 | 2/14/2023 |
2.2.1 | 290 | 1/28/2023 |
2.2.0 | 336 | 11/3/2022 |
2.1.9 | 400 | 10/4/2022 |
2.1.8 | 456 | 9/24/2022 |
2.1.6 | 444 | 9/23/2022 |
2.1.5 | 430 | 9/19/2022 |
2.0.0 | 419 | 9/8/2022 |