Programming

How to use AutoMapper in C#

How to use AutoMapper in C#

In this article, we are going to discuss, How to use AutoMapper in C#. We will learn the implementation of AutoMapper in C# with the help of examples. First thing first let's talk about what is automapper and why we use automapper. Why we need AutoMapper in C#? Mapping is performed when we want to copy or transfer one object to another object. Let's first see how we map normally two objects in C# applications. Here I have to classes "Student" and "StudentDTO". public class Student { public string FullName { get; set; } public string Address { get; set;…
Read More
How to Install Entity Framework Core in ASP.NET Core

How to Install Entity Framework Core in ASP.NET Core

Today, You will learn How to install Entity Framework Core in the ASP.NET Core Web application. Entity Framework Core is a Nugget package that can be added to your application/project in a number of ways depending upon your IDE and project type. What is Entity Framework Core? Entity Framework Core is an ORM (Object-Relational Mapper) software that is lightweight, extensible, and open-source. Entity Framework Core is cross-platform like .NET Core and supports windows, Linux, and Mac OS. What is ORM? ORMis Object-Relational mapper that allows developers to connect with databases through business objects. So developers perform operations on business objects…
Read More
Should you learn C# and .NET 6 in 2022

Should you learn C# and .NET 6 in 2022

Today, we will talk about C# and .NET 6, and we believe it will be red hot in 2022. so if you see a lot about Microsoft, they are in the annual release cycles of .NET now. History of .NET: If you don't know much about .NET, let me give you a brief history lesson. Before, .NET had a version called 4.5, but under that, there were multiple frameworks. They did various things like building mobile apps, desktop apps, and web apps, and all these frameworks were kind of disparate and not well joined together. So Microsoft decided to do…
Read More
Is C# hard to learn

Is C# hard to learn

Is C# hard to learn? So what's your favorite part about spider-man you haven't seen spider-man yet no that's a requirement to work here. Learning Curve fo C#: Today we're gonna answer the question that is C# hard to learn. All right this is one of the biggest questions that new developers have "Is C# hard to learn". I want to talk to you real quickly about why you're asking that question. let's just dispel it right away, all languages have the same kind of learning curve whether that's JavaScript, C#, Java, Python, PHP, or whatever. Because these are all…
Read More
What is .NET Core?

What is .NET Core?

We were receiving a lot of requests to briefly describe and cover the topic of .NET Core. We can understand that it bit generic and a big topic to cover but we have tried our best to provide the best about what is .NET Core in this post. Agenda: Let's have a look at the agenda, in this post we will learn and try to give the precise answers of What is .NET core?Where can we develop applications using .NET core?What can we develop with the .NET core?Features of .NET core.Language SupportPackage managementCommunity What is .NET Core? .NET core is…
Read More
Is C# Dying?

Is C# Dying?

C# came out in 2002 so it's really not old if you look at Java, JavaScript, PHP, and Python all of which are much older languages don't mean that c-sharp isn't mature though. It just means that it's actually a young language in terms of the other ones out there that you think about. It's also a lot cooler than you probably think. Opportunities: So C# isn't dying because it is built and maintained by Microsoft. Microsoft has a large investment into making sure c-sharp is the predominant language used today. So they spent two billion dollars in marketing and…
Read More
I don’t need postman anymore! I use VS Code Instead

I don’t need postman anymore! I use VS Code Instead

We all use postman to send and test http requests. While coding at the same time we test the requests that we code. In the meantime to test our request or APIs we open post and switch between both of the Applications, postman and VS Code that is a separate headache. The new Postman update is very slow to load with complex user interface. It use a lot of ram as well that can slow the speed of pc and our productivity got hurt. So I have a solution for you guys. You don’t have to switch between postman and…
Read More
What is .NET Core vs .NET Framework

What is .NET Core vs .NET Framework

What is .net core vs .net framework. The first launch of .NET Framework was in 2002, and over the years, it grew a huge set of APIs. On the other hand, .NET Core was introduced in 2016. Short Intro: The .Net Framework is an immense and mature development platform to create Windows desktop, web, mobile, games, and IoT applications. .NET Core, on the other hand, is an open-source .NET platform that allows you to build cross-platform applications; So your apps can run on Windows, Linux, and Mac OS. We had the option to gain from the .NET Framework experience and…
Read More
Type Checking in C#

Type Checking in C#

The purpose of this article is to introduce you to C# type checking. Using typeof, we can determine the type of built-in types such as int, float, etc, and user-defined types such as classes, interfaces, delegates, and structs. int num = 1; Employee emp = new Employee(); Console.WriteLine(typeof(Employee)); Console.WriteLine(typeof(int)); There is no way to pass user-defined type objects and built-in type variables through typeof. int num = 1; Employee emp = new Employee(); Console.WriteLine(typeof(emp)); // throws compile time error Console.WriteLine(typeof(num)); // throws compile time error The typeof function checks the type at compile time. User-defined type objects may be found…
Read More