Tag: C#

ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 2 Auditing in EF Core with CreatedBy and LastModifiedBy)

Now we will create our domain entities and implement EF Core auditing by saving the user who created the record and the last user who modified the record.

How To Create an ASP.Net Core Web API Using Visual Studio 2019

In this article I will teach you how to create an ASP .Net Core Web API using Visual Studio 2019. If you don't have Visual Studio 2019, you can download it from https://visualstudio.microsoft.com/ for free. https://www.youtube.com/watch?v=v0CFQj8RZHI&feature=youtu.be In installing Visual Studio 2019. Make sure to check ASP.NET and web development. After installing Visual Studio 2019. Open … Continue reading How To Create an ASP.Net Core Web API Using Visual Studio 2019

C# Basic: Nested Loop (Display Star Right Triangle)

Today I will show you how to use a nested loop. To demonstrate a nested loop we will create a star triangle pattern. Our output will look like this. https://www.youtube.com/watch?v=mFSS9XSxPEg&feature=youtu.be First we will ask the user to enter the height of the triangle. We can get a user input by using the Console.ReadLine(). Console.ReadLine() returns … Continue reading C# Basic: Nested Loop (Display Star Right Triangle)

Hotel Reservation System C# Entity Framework Part 2

This is part 2 of my Hotel Reservation System using C# Entity Framework tutorial. In this article we will create our customer management and implement search function in our form. https://www.youtube.com/watch?v=VghcGBWJP1U&feature=youtu.be Add new form in your project and call it CustomerForm. Then style it like the image below. Use this names for controls in add … Continue reading Hotel Reservation System C# Entity Framework Part 2

Hotel Reservation System C# Entity Framework Part 1

To create a Hotel Reservation, we first need to determine our requirements. The user should be able add and update rooms.The user should be able add and update customers.The user should be able to see available rooms.The user should be able to book a customer to a multiple rooms.The user should be able to manage … Continue reading Hotel Reservation System C# Entity Framework Part 1

How To Connect SQL Server Database Using C# and Perform CRUD Operation – Part 2

This is part two of my first post How To Connect SQL Server Database Using C# and Perform CRUD Operation - Part 1. In this post you will learn how to insert, update and delete data in the database using C#. Let's start by adding form controls to enter data. Add two textboxes in the … Continue reading How To Connect SQL Server Database Using C# and Perform CRUD Operation – Part 2

How To Connect SQL Server Database Using C# and Perform CRUD Operation – Part 1

In this tutorial I will teach you how to connect to SQL Server using C# and perform a basic CRUD operation in object oriented manner. You will also learn how to use DataGridView to display data from the database and how to get the data from the selected row of the data grid. For this … Continue reading How To Connect SQL Server Database Using C# and Perform CRUD Operation – Part 1