Learning Objectives: RESTful Design What is REST? REST (Representational State Transfer) is an architectural style for designing networked applications. RESTful APIs use HTTP methods (GET, POST, PUT, DELETE) to manage resources and are easy to use, scalable, and widely adopted for web services. Key RESTful Concepts: Example of Resource URL: Example: Creating RESTful Endpoints: Real-Life […]
Learning Objectives ADO.NET Basics What is ADO.NET? ADO.NET is a data access technology that allows .NET applications to interact with databases. It provides the means to connect, execute commands, and retrieve results from databases such as SQL Server. Setting Up SQL Connection To connect to a SQL Server database, we need to use SqlConnection: Real-Life […]
What is Routing? Routing in ASP.NET Core is the process of mapping an incoming HTTP request to a particular controller action. When a request is made to an API, routing helps to determine which action should handle it based on the URL and other request parameters. There are two main types of routing: 1. IActionResult […]
Learning Objectives Creating Web APIs What is a Web API? A Web API (Application Programming Interface) allows different applications to communicate with each other over HTTP. In ASP.NET Core, Web APIs are built using controllers and actions to define endpoints, and attribute routing to manage how requests are directed. Controllers, Actions, and Attribute Routing Creating […]
Learning Objectives C# Version Updates Nullable Reference Types In earlier versions of C#, reference types could be null by default, often leading to runtime errors (null reference exceptions). Starting with C# 8, nullable reference types were introduced to provide better null safety. Code Example: Real-Life Example: In a user management system, ensuring fields like email […]
Learning Objectives NET Core Overview What is .NET Core? .NET Core is an open-source, cross-platform framework for building modern applications. Unlike the .NET Framework, which is limited to Windows, .NET Core can run on Windows, Linux, and macOS, making it more flexible. Starting from .NET 5, Microsoft has unified .NET Core and the traditional .NET […]