From the course: Azure Microservices with .NET Core for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating the products provider - Azure Tutorial
From the course: Azure Microservices with .NET Core for Developers
Creating the products provider
- [Instructor] Now that our project is set up, we're ready to implement the IProductsProvider interface, but before that, we're going to add a new folder for our models, so, this new folder, Models, will have a new class named Product. Be careful that this is different than the other one that we created before, even if they have the same properties. This one is going to be the one that we're going to return from the provider, and this one is the one that we use for database access. This is important because you can have different things and different meanings in each one. We have this model right now. Let's go ahead and add another folder, named Interfaces, where we're going to add a new interface named IProductsProvider. This interface will have all the different methods that we're going to invoke from the controller. The first method that we're going to implement is the one that returns all the products. Let's do this as…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Designing a microservices solution1m 31s
-
Creating a .NET Core solution for microservices6m 45s
-
(Locked)
Creating the database context for the products microservice4m 59s
-
(Locked)
Creating the products provider8m 45s
-
(Locked)
Obtaining all the products in the products microservice8m 23s
-
(Locked)
Obtaining a single product in the products microservice4m 25s
-
(Locked)
Challenge: Implementing the customers and orders microservices1m 18s
-
(Locked)
Solution: Implementing the customers and orders microservices5m 59s
-
(Locked)
-
-
-
-
-