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.
我正在尝试在我的应用程序中使用 MVVM 模式。该应用程序所做的一件事是启动批处理作业。所以我有一个名为 BatchProcessing.cs 的类文件。该文件不适合 ViewModel 的描述。我应该把这个文件放在 ViewModel 文件夹中还是放在其他地方?
问候,
您应该将此文件放在一个单独的类库中(在 LOB 应用程序中,这通常称为商业智能层)应该从您的 UI 项目中引用并从您的 ViewModel 访问它。
它显然不属于UI层......