Derd 2.2.17
See the version list below for details.
dotnet add package Derd --version 2.2.17
NuGet\Install-Package Derd -Version 2.2.17
<PackageReference Include="Derd" Version="2.2.17" />
paket add Derd --version 2.2.17
#r "nuget: Derd, 2.2.17"
// Install Derd as a Cake Addin #addin nuget:?package=Derd&version=2.2.17 // Install Derd as a Cake Tool #tool nuget:?package=Derd&version=2.2.17
<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.2.0
.NET CLI
dotnet add package Derd --version 2.2.0
PackageReference
<PackageReference Include="Derd" Version="2.2.0" />
Paket CLI
paket add Derd --version 2.2.0
🛠️使用说明
Derd基于微软的DbProviderFactory技术实现,根据实际使用的数据库类型,需要引入实现了对应数据库的DbProviderFactory相关接口的第三方包;已测试并验证通过的数据库第三方包对应关系如下:
数据库库类型 | 依赖包 |
---|---|
Sqlite | System.Data.SQLite |
Mysql | MySql.Data |
Oracle | Oracle.ManagedDataAccess.Core |
SqlServer | Microsoft.Data.SqlClient |
Postgres | Npgsql |
使用时,可根据需要添加其中的一项或多项依赖。
*注:其他未列出的实现了微软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.0)
- Wukong (>= 2.0.6)
- Xmtool (>= 2.0.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 |
---|---|---|
3.0.1 | 127 | 5/30/2024 |
3.0.0 | 91 | 5/11/2024 |
2.8.5 | 117 | 8/18/2024 |
2.8.3 | 105 | 5/30/2024 |
2.8.2 | 121 | 5/5/2024 |
2.8.1 | 129 | 2/28/2024 |
2.8.0 | 129 | 2/22/2024 |
2.7.12 | 112 | 2/17/2024 |
2.7.11 | 151 | 1/16/2024 |
2.7.10 | 178 | 12/22/2023 |
2.7.9 | 121 | 12/21/2023 |
2.7.7 | 186 | 11/3/2023 |
2.7.6 | 132 | 10/27/2023 |
2.7.5 | 133 | 10/16/2023 |
2.7.3 | 146 | 10/16/2023 |
2.7.0 | 125 | 10/15/2023 |
2.6.23 | 152 | 10/3/2023 |
2.6.22 | 133 | 9/28/2023 |
2.6.21 | 171 | 8/15/2023 |
2.6.20 | 180 | 8/12/2023 |
2.6.13 | 151 | 6/27/2023 |
2.6.12 | 160 | 6/25/2023 |
2.6.11 | 163 | 6/23/2023 |
2.6.0 | 171 | 6/20/2023 |
2.5.2 | 164 | 6/11/2023 |
2.5.1 | 148 | 6/11/2023 |
2.5.0 | 164 | 6/10/2023 |
2.2.17 | 167 | 5/20/2023 |
2.2.16 | 238 | 3/25/2023 |
2.2.15 | 217 | 3/24/2023 |
2.2.12 | 221 | 3/22/2023 |
2.2.11 | 240 | 3/19/2023 |
2.2.10 | 226 | 3/14/2023 |
2.2.9 | 231 | 3/10/2023 |
2.2.8 | 215 | 3/10/2023 |
2.2.7 | 233 | 3/6/2023 |
2.2.6 | 251 | 3/1/2023 |
2.2.5 | 231 | 2/14/2023 |
2.2.3 | 245 | 2/14/2023 |
2.2.2 | 241 | 2/14/2023 |
2.2.1 | 288 | 1/28/2023 |
2.2.0 | 334 | 11/3/2022 |
2.1.9 | 398 | 10/4/2022 |
2.1.8 | 454 | 9/24/2022 |
2.1.6 | 442 | 9/23/2022 |
2.1.5 | 428 | 9/19/2022 |
2.0.0 | 417 | 9/8/2022 |