Derd 2.2.15
See the version list below for details.
dotnet add package Derd --version 2.2.15
NuGet\Install-Package Derd -Version 2.2.15
<PackageReference Include="Derd" Version="2.2.15" />
paket add Derd --version 2.2.15
#r "nuget: Derd, 2.2.15"
// Install Derd as a Cake Addin #addin nuget:?package=Derd&version=2.2.15 // Install Derd as a Cake Tool #tool nuget:?package=Derd&version=2.2.15
<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 | 123 | 5/30/2024 |
3.0.0 | 88 | 5/11/2024 |
2.8.5 | 114 | 8/18/2024 |
2.8.3 | 102 | 5/30/2024 |
2.8.2 | 118 | 5/5/2024 |
2.8.1 | 126 | 2/28/2024 |
2.8.0 | 126 | 2/22/2024 |
2.7.12 | 109 | 2/17/2024 |
2.7.11 | 148 | 1/16/2024 |
2.7.10 | 173 | 12/22/2023 |
2.7.9 | 118 | 12/21/2023 |
2.7.7 | 183 | 11/3/2023 |
2.7.6 | 129 | 10/27/2023 |
2.7.5 | 130 | 10/16/2023 |
2.7.3 | 143 | 10/16/2023 |
2.7.0 | 122 | 10/15/2023 |
2.6.23 | 149 | 10/3/2023 |
2.6.22 | 130 | 9/28/2023 |
2.6.21 | 168 | 8/15/2023 |
2.6.20 | 177 | 8/12/2023 |
2.6.13 | 148 | 6/27/2023 |
2.6.12 | 157 | 6/25/2023 |
2.6.11 | 160 | 6/23/2023 |
2.6.0 | 168 | 6/20/2023 |
2.5.2 | 161 | 6/11/2023 |
2.5.1 | 145 | 6/11/2023 |
2.5.0 | 161 | 6/10/2023 |
2.2.17 | 164 | 5/20/2023 |
2.2.16 | 235 | 3/25/2023 |
2.2.15 | 214 | 3/24/2023 |
2.2.12 | 218 | 3/22/2023 |
2.2.11 | 237 | 3/19/2023 |
2.2.10 | 223 | 3/14/2023 |
2.2.9 | 228 | 3/10/2023 |
2.2.8 | 212 | 3/10/2023 |
2.2.7 | 230 | 3/6/2023 |
2.2.6 | 248 | 3/1/2023 |
2.2.5 | 228 | 2/14/2023 |
2.2.3 | 242 | 2/14/2023 |
2.2.2 | 238 | 2/14/2023 |
2.2.1 | 285 | 1/28/2023 |
2.2.0 | 331 | 11/3/2022 |
2.1.9 | 395 | 10/4/2022 |
2.1.8 | 451 | 9/24/2022 |
2.1.6 | 439 | 9/23/2022 |
2.1.5 | 425 | 9/19/2022 |
2.0.0 | 414 | 9/8/2022 |