ardalis / ardalis/StatePattern

Mapping the State Pattern to a Database

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
33
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, I really like this pattern. But I am wondering how this might work with EF Core. The `Policy` class could easily be an entity that maps to a DB table. But I'm not quite sure how the private nested `State` classes should be handled? Would they live in-memory or in the DB? I can imagine a `State` table containing all possible states that would then be included in all `Policy` queries. But I'm not sure if that breaks this pattern. You are new-ing up the states in the Policy class constructor etc.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

ファイルもテストも指定されていません。まず Policy クラスとその private なネスト State クラスを読み、次にプロジェクトが現在どのように永続化をモデル化しているかを調べてください。この issue を完了するには、EF Core のマッピング方針を決定し、対応するドキュメントまたは実装を用意してからでなければ、完了を検証できません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
databases
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。