Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作成したサービス (ServiceClass) に、作成した別のクラス (ClassA) からアクセスしたい。これを行う適切な方法は ClassA をサービスにしてから ServiceClass を注入することだとよく読んだことがありますが、クラス ClassA は機能の点で実際にはサービスではなく、グローバルな機能を提供しません。エンティティなので、他のサービスにアクセスできるようにするためだけにサービスにするのは正しくないようです。誰でも私が理解するのを助けることができますか?