.NET Console API

Getting Started

  • First go to the directory where your project is going to be held cd directory-of-your-project

  • Create your project dotnet new <API Type> --name or -n <Name of Your Project>:

    dotnet new console -n HelloWorld
  • Check the structure of your project

    DOTNET-API-EXAMPLE
    │
    └───HelloWorld
        │   HelloWorld.csproj # What is in our project
        │   Program.cs # The actual code of our project
        │
        ├───bin
        └───obj
    
  • Run your project

    dotnet run # dotnet watch run > Runs when there's a change on the code
    # > Hello, World!
  • Check the app at the HelloWorld directory

Notes

  1. Writing to the Console and C# Basic Types
  2. Data Structures
  3. Operators and Comparison
  4. Conditional Statements
  5. Loops
  6. Methods
  7. Scope
  8. Models
  9. Namespaces
  10. MS SQL Database Connection
  11. Config
  12. File Read and Write
  13. JSON
  14. Model Mapping
  15. SQL
  16. API Basics
  17. API Intermediate
  18. Stored Procedures
  19. API Advanced
  20. Deployment