-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Frequently Asked Questions
This app could be done completely in one way or the other, but as this is a demo app we're trying to show how it's done in each. This way you can see the advantages / disadvantages of each. A few years ago in this project we tried to maintain two separate projects - 1 for just MVC and 1 for just Razor pages. It was difficult to maintain both, so we combined the projects.
With this being a demo app, we were trying to show a few different ways to approach solutions. For example, the OrderController was updated to use MediatR while the ManageController was not. This way you can see the advantages / disadvantages of each approach while staying in the same repo.
I would definitely recommend for a "real" project that you maintain one approach or the other.
Ideally a Repository shouldn't have business logic, per se. It should only be responsible for getting or storing an entity or aggregate from/to persistence - whatever that might be. If the Web project wants to work with the domain model, it needs a way to get those items. If it's not just creating them from scratch, there must be some abstraction it uses to access them from persistence. That abstraction is the Repository pattern. Many applications prefer to decouple the UI/Web project from the domain model via a collection of application services, and that's fine, too. But then these application services still must have a way to access the model from persistence.
- Getting Started for Beginners (with video)
-
Walkthroughs
- Deploying to Azure App Service from Visual Studio
- Deploying to Azure App Service from Azure Portal
- Deploying to Azure App Service from Visual Studio for Mac
- Running as a Linux Container locally in Visual Studio
- Deploying as a Linux Container into Azure App Service
- Running in a Windows Container locally in Visual Studio
- Running as a Linux Container locally in Visual Studio for Mac
- Deploying as a Windows Container into a Windows Container host in Azure
- Working with the Project and Adding New Features using Visual Studio for Mac