Skip to content

使用基于 CQRS 方法和域驱动设计实现的示例 .NET Core REST API 应用程序。

Notifications You must be signed in to change notification settings

liuweichaox/Master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用 Clean Architecture 的原始 SQL 和 DDD 的示例 .NET Core REST API CQRS 实现。

给个 Star!

如果你喜欢这个项目,学到了一些东西或者你正在你的应用程序中使用它,请给它一个星。 谢谢!

描述

使用基本 CQRS 方法和域驱动设计实现的示例 .NET Core REST API 应用程序。

Architecture Clean Architecture

projects_dependencies

CQRS

读取模型 - 在数据库视图对象上执行原始 SQL 脚本 (使用 Dapper).

编写模型 - 域驱动设计方法(使用 Entity Framework Core)。

使用 MediatR 库处理命令/查询/域事件。

Domain

projects_dependencies

Validation

使用 FluentValidation 进行数据验证

使用 ProblemDetails 的 HTTP API 标准实现的问题详细信息

Caching

使用 Cache-Aside 模式和内存缓存。

Integration

使用 Quartz.NET 实现发件箱模式

相关博客文章

使用原始 SQL 和 DDD 的简单 CQRS 实现

使用 Entity Framework 7.0 的领域模型和透明持久化

REST API 数据验证

领域模型验证

如何发布和处理领域事件

处理领域事件

.NET Core 中的缓存备用模式

发件箱模式

如何运行应用程序

  1. 创建空数据库。
  2. 执行 InitializeDatabase.sql 脚本。
  3. 在 appsettings.json 中设置连接字符串。
  4. Run!

参考文档

https://learn.microsoft.com/zh-cn/azure/architecture/microservices/

About

使用基于 CQRS 方法和域驱动设计实现的示例 .NET Core REST API 应用程序。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages