Test: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act). | Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act). | ||
{{#mermaid: | {{#mermaid:graph TD | ||
A[Start Application] --> B{Create WebApplication Builder}; | |||
B --> C{Get Connection String}; | |||
} | C --> D{Add DbContext (ApplicationDbContext)}; | ||
D --> E{Add Database Developer Page Exception Filter}; | |||
E --> F{Add Default Identity (IdentityUser)}; | |||
} | F --> G{Add Controllers With Views}; | ||
G --> H{Build Application}; | |||
} | H --> I{Check Environment (Development?)}; | ||
I -- Yes --> J[Use Migrations Endpoint]; | |||
I -- No --> K[Use Exception Handler]; | |||
K --> L[Use HSTS]; | |||
J --> M[Use HTTPS Redirection]; | |||
L --> M; | |||
Routing -- | M --> N[Use Routing]; | ||
N --> O[Use Authorization]; | |||
O --> P[Map Static Assets]; | |||
P --> Q[Map Controller Route (default)]; | |||
Q --> R[Map Razor Pages]; | |||
R --> S[Run Application]; | |||
}} | }} | ||
Version vom 19. März 2025, 12:13 Uhr
Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act).
{{#mermaid:graph TD
A[Start Application] --> B{Create WebApplication Builder};
B --> C{Get Connection String};
C --> D{Add DbContext (ApplicationDbContext)};
D --> E{Add Database Developer Page Exception Filter};
E --> F{Add Default Identity (IdentityUser)};
F --> G{Add Controllers With Views};
G --> H{Build Application};
H --> I{Check Environment (Development?)};
I -- Yes --> J[Use Migrations Endpoint];
I -- No --> K[Use Exception Handler];
K --> L[Use HSTS];
J --> M[Use HTTPS Redirection];
L --> M;
M --> N[Use Routing];
N --> O[Use Authorization];
O --> P[Map Static Assets];
P --> Q[Map Controller Route (default)];
Q --> R[Map Razor Pages];
R --> S[Run Application];
}}
{{#mermaid:classDiagram
class ActionResult {
<<abstract>>
+ExecuteResultAsync(ActionContext context) Task
}
class ViewResult {
+ViewName : string
+Model : object
+ExecuteResultAsync(ActionContext context) Task
}
class JsonResult {
+Value : object
+ExecuteResultAsync(ActionContext context) Task
}
class FileResult {
+FileName : string
+ContentType : string
+ExecuteResultAsync(ActionContext context) Task
}
class RedirectResult {
+Url : string
+Permanent : bool
+ExecuteResultAsync(ActionContext context) Task
}
class StatusCodeResult {
+StatusCode : int
+ExecuteResultAsync(ActionContext context) Task
}
ActionResult <|-- ViewResult ActionResult <|-- JsonResult ActionResult <|-- FileResult ActionResult <|-- RedirectResult ActionResult <|-- StatusCodeResult
}}
Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act).