1

[DDD] クリーンアーキテクチャサンプル

これはなに?

C#erのDDD初学者が、CleanArchitecture実装の理解を深めるための記事です

背景

こちらのサンプル [https://nrslib.com/clean-architecture/] がわかりやすそうだったのですが、Web系に疎い僕にとってはすこしイメージし辛い部分(≒ノイズ)があったので、慣れ親しんだ古き善きWinFormで実装しなおしました。

サンプル

こちら
https://github.com/ambleside138/CleanArchitecture_WinForm

※CleanArchitectureの内容自体は本家の記事で詳しく説明してくださってるのでそちらを読み込むとよいかと。

本家サンプルからの変更点

  1. Presenter層にWinFormを利用
    Web屋さんでない人もとっつきやすくなるかと

  2. DIにSimpleInjectorを利用
    ContainerHelperクラスにてセットアップ、コンテナの保持をしてます

  3. UseCase.Core名前空間を別アセンブリに移動

※これからも少しずつ、自分の理解も深めながら改修していく予定

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away