C# basics: why we override Equals method

You may have come across questions, Why to override Equals method? How to determine whether two object are equal? How to determine whether two objects are identical? To get answer of all the above questions, let us consider Product class as listed next:   We are creating two instances of the Product class, foo and … Continue reading C# basics: why we override Equals method

Advertisements

C-Sharp Basics: What is Checked and Unchecked operations

You may have come across questions, What is checked and unchecked primitive operations? How to handle overflow in C-Sharp? Does CLR handles overflow or developers? So let us start with understanding a program. Consider the code listed below:   On running you will get 44 as the output. There is one serious observation about the … Continue reading C-Sharp Basics: What is Checked and Unchecked operations

How to create a Container in Azure Storage from MVC application

I am working on a MVC application in which I need to work with Microsoft Azure storage .I had a requirement to create An Azure storage container from the MVC application. In this post I will share my learning that how I created a container programmatically. I created the view as shown in below image. … Continue reading How to create a Container in Azure Storage from MVC application

Related entities in Entity Framework Code First approach

In this post we will learn to create relationship between entities in the Entity Framework Code First approach. Setting up We are going to create three tables and set up the relationship between them. BankUser BankUserAccount Nomniee To create tables we will create entities further in the post. For table creation the context class has … Continue reading Related entities in Entity Framework Code First approach