Okay, we've now reached the end of section seven and we've implemented our shopping cart feature.
So just to recap, we've now got that feature added and enabled in our application.
And we took a look at our different storage options for the shopping cart and many viable options for
this actually.
But I chose for this particular training course to use the database to store it, just to take advantage
of relational database features.
But we could have gone an entirely different approach, and they would all be viable in their own ways.
And it could also be enhanced because we're not tracking what somebody is actually putting in and taking
out of their basket.
There are options to track events, such as when somebody is adding something and removing something
from their basket and storing that information in a database so that our marketing department, if we
had one, could come along at a future point and find out what's going on for marketing purposes.
Also, we've taken a look at Entity Framework relationships, and we took a look at one way of setting
this up, and that's simply to use Entity Framework conventions.
So the Entity Framework works out how the relationship should be configured.
There are alternative approaches to this as well.
We can do it by configuration.
I've just chosen to do it by convention for our purposes today, but there are equally viable options,
and configuration would also be a good way to do it.
You don't gain anything by doing it that way.
It's just an alternative approach.
And we've also taken a look at shaping data.
So when we do have related tables of course, then serializing that data into JSON that we then return
needs special handling.
And that's what we did with Dtos in this case.
So just one frequently asked question mapping code is tedious.
Are we going to use Automapper at any point during this course?
Some developers love it, some developers do not like it.
We are going to implement it.
But later on, towards the end of the course when we take a look at Crud operations, I feel that's
a better time to introduce it.
And I also wanted to demonstrate not using Automapper because the internet is divided on this.
So coming up next, then we're going to take a look at our user interface next.
And we're going to implement features that allow the user to control how they see the data they get
back in our catalog.
And take a look at pagination, sorting filtering and searching.
And that's coming up next.