FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DapperCodeGenerator/DapperCodeGenerator.Web/Program.cs at master · spronkets/DapperCodeGenerator · GitHub
spronkets
/
DapperCodeGenerator
Public
Notifications
You must be signed in to change notification settings
Fork
29
Star
51
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
DapperCodeGenerator
/
DapperCodeGenerator.Web
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (19 loc) · 801 Bytes
Breadcrumbs
DapperCodeGenerator
/
DapperCodeGenerator.Web
/
Program.cs
Copy path
File metadata and controls
27 lines (19 loc) · 801 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using
DapperCodeGenerator
.
Web
.
Components
;
var
builder
=
WebApplication
.
CreateBuilder
(
args
)
;
builder
.
Configuration
.
AddJsonFile
(
"appsettings.local.json"
,
optional
:
true
,
reloadOnChange
:
true
)
;
// Add services to the container.
builder
.
Services
.
AddRazorComponents
(
)
.
AddInteractiveServerComponents
(
)
;
var
app
=
builder
.
Build
(
)
;
// Configure the HTTP request pipeline.
if
(
!
app
.
Environment
.
IsDevelopment
(
)
)
{
app
.
UseExceptionHandler
(
"/Error"
,
createScopeForErrors
:
true
)
;
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app
.
UseHsts
(
)
;
}
app
.
UseHttpsRedirection
(
)
;
app
.
UseStaticFiles
(
)
;
app
.
UseAntiforgery
(
)
;
app
.
MapStaticAssets
(
)
;
app
.
MapRazorComponents
<
App
>
(
)
.
AddInteractiveServerRenderMode
(
)
;
app
.
Run
(
)
;
Back
|
FazBrowse Home
|
New Git URL