C#
Create a minimal API with ASP.NET Core – Part 3
Alright! Let´s examine our new api. Remember to restart our app before continuing since you updated our code last time. In the tutorial we use postman but we can also use invoke-webrequest that is built in to powershell. Create a variable containing a formated string as json. This contains a name and the bool for […]
Create a minimal API with ASP.NET Core – Part 2
Go ahead and install the entityframework. With this done we can now create a new class that is our model for an todo app and also create the database context class file. Paste both code into each code file. Remember you can get the information from here. Finally replace our boilerplate code for the asp.net […]
Publishing and subscribing to Event Grid events Part 1 – Create Azure Event Grid Topic
Let’s go into the lab 10 in the Microsoft github here and create our resources. For more information about Microsoft github and github please see my previous posts about how to set everything up. First check that the EventGrid provider is registered in your Azure tenant. Now let’s jump into the portal and create or […]
Initialize a dictionary with a collection initializer in C# Part 1 – Create a Student Class
Time to create a dictionary in C# from the programming guide here. First create a new class file named Write three properties for your new class and make your class public. Save your new class and in the next post we’ll initialize an dictionary and populate with some students.
Initialize a dictionary with a collection initializer in C# Part 3 – Loop through the dictionary
With our dictionary of students created we can now loop through it to retrieve both Keys and values. We will make use of the Enumerable.Range so make sure to add the Linq to your class. Now write the foreach loop. Now let’s run the app and see the result! There you go! Wow! Great work […]
You must be logged in to post a comment.