Derd 2.8.1

dotnet add package Derd --version 2.8.1
NuGet\Install-Package Derd -Version 2.8.1
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="Derd" Version="2.8.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Derd --version 2.8.1
#r "nuget: Derd, 2.8.1"
#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.
// Install Derd as a Cake Addin
#addin nuget:?package=Derd&version=2.8.1

// Install Derd as a Cake Tool
#tool nuget:?package=Derd&version=2.8.1

<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.1
.NET CLI
dotnet add package Derd --version 2.8.1
PackageReference
<PackageReference Include="Derd" Version="2.8.1" />
Paket CLI
paket add Derd --version 2.8.1

🛠️使用说明

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.8.1 83 2/28/2024
2.8.0 94 2/22/2024
2.7.12 79 2/17/2024
2.7.11 118 1/16/2024
2.7.10 131 12/22/2023
2.7.9 93 12/21/2023
2.7.7 155 11/3/2023
2.7.6 97 10/27/2023
2.7.5 105 10/16/2023
2.7.3 117 10/16/2023
2.7.0 97 10/15/2023
2.6.23 121 10/3/2023
2.6.22 107 9/28/2023
2.6.21 146 8/15/2023
2.6.20 152 8/12/2023
2.6.13 119 6/27/2023
2.6.12 130 6/25/2023
2.6.11 135 6/23/2023
2.6.0 137 6/20/2023
2.5.2 136 6/11/2023
2.5.1 120 6/11/2023
2.5.0 137 6/10/2023
2.2.17 142 5/20/2023
2.2.16 213 3/25/2023
2.2.15 191 3/24/2023
2.2.12 194 3/22/2023
2.2.11 210 3/19/2023
2.2.10 202 3/14/2023
2.2.9 207 3/10/2023
2.2.8 183 3/10/2023
2.2.7 207 3/6/2023
2.2.6 226 3/1/2023
2.2.5 202 2/14/2023
2.2.3 220 2/14/2023
2.2.2 214 2/14/2023
2.2.1 259 1/28/2023
2.2.0 307 11/3/2022
2.1.9 370 10/4/2022
2.1.8 422 9/24/2022
2.1.6 413 9/23/2022
2.1.5 399 9/19/2022
2.0.0 391 9/8/2022