私は自分のプロジェクトでこのようなものを持っています。プロジェクトはすでにちょっと終わっています (それは機能しています) SOLID の原則で問題ないかどうか知りたいだけです
static public class Tools
{
static public GetProduct(this id){...}
static public GetProductCategory(this id){...}
static public GetUser(this id){...}
// I also have here methods like IsStringNull ...
// IsNull IsFalse, lots of stuff, everything static
}
そして使い方はこんな感じ
var UserThatCreatedCategoryForThisProduct =
prodId.GetProduct().CategoryId.GetProductCategory().Creator.GetUser();
SRPに違反していることは明らかですが、このクラスは静的であり、互いに独立した静的メソッドが含まれており、メソッドごとに静的クラスを作成する場合も同様です