Test: Unterschied zwischen den Versionen

Aus Dokument
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:classDiagram
{{#mermaid:graph TD
     class Controller{
     A[Start Application] --> B{Create WebApplication Builder};
        +Execute(Request) Response
    B --> C{Get Connection String};
     }
    C --> D{Add DbContext (ApplicationDbContext)};
     class Routing{
     D --> E{Add Database Developer Page Exception Filter};
        +Route(Request) Controller
     E --> F{Add Default Identity (IdentityUser)};
     }
     F --> G{Add Controllers With Views};
     class Request{
     G --> H{Build Application};
     }
     H --> I{Check Environment (Development?)};
     class Response{
     I -- Yes --> J[Use Migrations Endpoint];
     }
     I -- No --> K[Use Exception Handler];
     class ActionResult{
     K --> L[Use HSTS];
     }
     J --> M[Use HTTPS Redirection];
     Controller --|> ActionResult
     L --> M;
     Routing --|> Controller
     M --> N[Use Routing];
     Controller "1" -- "1" Request : uses
    N --> O[Use Authorization];
     Controller "1" -- "1" Response : creates
    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).