Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,840 --> 00:00:07,210
When you create an to speed up net core embassy application, you could see that there were some default
2
00:00:07,210 --> 00:00:10,990
files that came with the Temperley that we selected.
3
00:00:11,290 --> 00:00:16,690
But what are these default files and what is their purpose?
4
00:00:17,170 --> 00:00:23,530
So now let us go to Visual Studio and have a look at the default files that come with the MVC template
5
00:00:23,530 --> 00:00:24,550
in Visual Studio.
6
00:00:25,390 --> 00:00:28,060
The first option in here is the connected services.
7
00:00:28,060 --> 00:00:31,780
And if you want to add a connected service, you can just right click in here.
8
00:00:32,350 --> 00:00:35,020
Then go to the ADD Connected Service.
9
00:00:36,580 --> 00:00:42,160
And then you can add services like the Open API, BGR, PC, etc..
10
00:00:42,700 --> 00:00:51,250
Some other services are the Microsoft WCF and the authentication with Azure Active Directory.
11
00:00:51,710 --> 00:00:56,170
Now, if you want to add a service dependency, you can just click here on the plus button.
12
00:00:57,180 --> 00:01:02,910
And these are the options, like, for example, you can add the storage of misleader locally, you
13
00:01:02,910 --> 00:01:09,240
can add a reference to the Azure storage, etc. So you can see in your a list of different services.
14
00:01:09,480 --> 00:01:13,500
Now, I'll just close this window so by just clicking cancel.
15
00:01:14,160 --> 00:01:20,460
Next, we have the dependencies and then inside the dependencies, you have the analysers and the frameworks.
16
00:01:20,490 --> 00:01:26,760
Now, if I expand the frameworks inside here, you can see the ASP.NET Code app, and then you have
17
00:01:26,760 --> 00:01:35,820
all the default dot net core libraries, like, for example, the anti forgery, the course, and then
18
00:01:35,820 --> 00:01:44,220
don't you have, for example, the HDP, etc. And you also have the net core, that app.
19
00:01:45,360 --> 00:01:51,060
The next year you have the properties and inside the properties folder, you have the launch settings
20
00:01:51,060 --> 00:01:52,080
that jassam file.
21
00:01:52,380 --> 00:01:56,030
And if you open these file, you'll have in the IRS settings.
22
00:01:56,030 --> 00:02:00,390
So where the app is going to be run and the profiles.
23
00:02:00,810 --> 00:02:03,120
Now you can have in your multiple profile.
24
00:02:03,140 --> 00:02:06,900
So, for example, in this case, by default, we have two profiles.
25
00:02:07,290 --> 00:02:12,480
The first one is the IRS Express and the second one is the E!
26
00:02:12,900 --> 00:02:13,380
Tickets.
27
00:02:13,800 --> 00:02:19,590
Now, inside the profiles, you can define common names and define the dotnet run messages.
28
00:02:19,860 --> 00:02:25,620
The Longe browser, the application URL, which is the most important one, and also the environment
29
00:02:25,680 --> 00:02:26,160
type.
30
00:02:26,340 --> 00:02:31,740
Not when you create a profile in here, you'll be able to see the profile here on the dropdown.
31
00:02:31,740 --> 00:02:34,830
So in this case, we have the IRS Express and the etiquettes.
32
00:02:34,830 --> 00:02:39,960
So we have in here is Express and also the E tickets.
33
00:02:40,200 --> 00:02:44,130
Now, if you create another profile, the profile will show up in here.
34
00:02:44,790 --> 00:02:47,160
The next section is the root section.
35
00:02:47,550 --> 00:02:53,970
And this is also known as the static file section, because inside here you normally keep the static
36
00:02:53,970 --> 00:02:58,410
QSOs files, JavaScript files, custom libraries.
37
00:02:58,740 --> 00:03:03,930
So, for example, if you open the leap folder in here, you are going to see the bootstrap, Jaqui,
38
00:03:04,350 --> 00:03:10,830
etc. If you have, for example, static files that you want to use in your app, let's see some images
39
00:03:11,250 --> 00:03:16,470
then you could create in here a separate images folder and then just stored the images in this section.
40
00:03:17,130 --> 00:03:21,220
The next you have the controllers, the models and views.
41
00:03:21,660 --> 00:03:27,420
And we have these folders because we selected the model view controller template as the default template.
42
00:03:27,750 --> 00:03:33,660
So if you open the controller inside here we have the home controller.
43
00:03:34,020 --> 00:03:40,380
And we said that the controllers are just c sharp classes that inherit from the base class controller.
44
00:03:41,390 --> 00:03:49,460
In the models, you have the air view model, and that is by default the only model that we have in
45
00:03:49,460 --> 00:03:49,730
here.
46
00:03:50,750 --> 00:03:58,940
The next we have the views folder and interviews folder, we have the home folder and the shared folder.
47
00:03:59,420 --> 00:04:02,900
Now, the reason why we have the home folder is because we have a HOONG controller.
48
00:04:03,320 --> 00:04:08,690
And the way that the embassy works is that for each controller that you have in here, a test controller
49
00:04:09,050 --> 00:04:12,770
for the controller, you will have a test folder in you.
50
00:04:12,770 --> 00:04:18,950
And each views for the controller methods will be placed within that folder.
51
00:04:19,580 --> 00:04:26,810
The shared folder is just a folder which has like the layout, the C sharp HDMI file, which is just
52
00:04:27,170 --> 00:04:28,010
a razor view.
53
00:04:28,430 --> 00:04:34,340
But this is the most important view in an ABC app, because in here you basically define how you want
54
00:04:34,340 --> 00:04:35,810
to render your app.
55
00:04:36,320 --> 00:04:41,780
So you would basically have the header we had, then you have the body and inside the body you have
56
00:04:42,110 --> 00:04:44,240
another header for the navigation bar.
57
00:04:45,050 --> 00:04:48,020
Then after the header, you have a div container.
58
00:04:48,470 --> 00:04:52,580
And that inside this main tag, you have the render body.
59
00:04:52,940 --> 00:04:58,340
Now, the render body in here is used to define what you want to render all your views.
60
00:04:58,790 --> 00:05:03,470
So basically, the views that you have in your app, whenever you call a view or you navigate throughout
61
00:05:03,470 --> 00:05:08,580
your app, there will all be rendered inside the div with the class container.
62
00:05:08,870 --> 00:05:11,180
And then inside the main tag.
63
00:05:11,660 --> 00:05:14,040
Then down here you have the filter.
64
00:05:14,690 --> 00:05:16,400
And this has some default text.
65
00:05:16,410 --> 00:05:19,610
And next, you are just loading some scripts.
66
00:05:20,120 --> 00:05:24,620
And next in here, you have the underscore validation script, partial view.
67
00:05:24,830 --> 00:05:28,250
And we are going to talk in the upcoming parts or departure views are.
68
00:05:28,640 --> 00:05:35,630
So if you open this file inside, you will see that you have two references to two different G.K validation
69
00:05:35,630 --> 00:05:36,860
related libraries.
70
00:05:37,520 --> 00:05:41,850
And then the last view inside the shared folder is the air Dusti Sharp HD Amle.
71
00:05:42,320 --> 00:05:45,680
And this is the default file that is used to render.
72
00:05:45,950 --> 00:05:49,970
When you have an error, the next thing you have the view imports.
73
00:05:49,970 --> 00:05:52,670
And we are going to talk about the view imports in the upcoming parts.
74
00:05:52,880 --> 00:05:54,590
You have the view star.
75
00:05:54,860 --> 00:06:03,200
And you can see here that you define as the default layout file to be the underscore layer.
76
00:06:03,350 --> 00:06:04,940
See sharp HDMI file.
77
00:06:05,540 --> 00:06:07,700
The next you have, the settings are do some file.
78
00:06:07,700 --> 00:06:13,670
And this is also known as the configuration file, because in here you can store data like the connection
79
00:06:13,670 --> 00:06:18,850
strings of the logging related configurations, etc..
80
00:06:19,340 --> 00:06:22,040
The other file is a program Ducey's.
81
00:06:22,490 --> 00:06:28,190
And this is known to be the entry point in all dotnet and bitartrate core applications, because it
82
00:06:28,190 --> 00:06:29,900
has this main method.
83
00:06:30,230 --> 00:06:37,430
And for the MVC apps, we have some pretty configurations like, for example, you need to use when
84
00:06:37,430 --> 00:06:39,600
the app starts, these start up class.
85
00:06:39,620 --> 00:06:45,230
And that brings us to the last class, which is the start of the series, which is also known as the
86
00:06:45,620 --> 00:06:48,890
configuration class in the dot net core applications.
87
00:06:49,070 --> 00:06:54,950
Now, inside this class, you have two main methods, the configure services and the configure method.
88
00:06:55,370 --> 00:07:02,390
And as the predefined comments seen here, you need to configure services to add services to the container.
89
00:07:02,390 --> 00:07:10,310
And we are talking about the default built in container in the Duffner core framework and use the configure
90
00:07:10,310 --> 00:07:15,020
method to configure the HDP request pipeline.
91
00:07:15,560 --> 00:07:22,430
Now, this is enough thiry in the upcoming parts, you'll start to create all the features one by one.
9769
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.