| by Achyut Kendre | No comments

Database First Entity Framework Curd Example

Example Code: https://drive.google.com/file/d/1OrCfLK7lHZPjwmCKCQp5qQOwhiAMCyIU/view?usp=sharin In Last session we learnt about how to create a model and use linq queries against entities. In this article we will learn about how to implement select with search, create , update and delete operations using entity framework database first approach. for this example we are using following database structure – […]

Read More
| by Achyut Kendre | No comments

What is Database First Approach in Entity Framework?

Example Code: https://drive.google.com/file/d/1laZVt6zyzVNx8KmR0xL2TnbZj3wNlNJQ/view?usp=sharing In the Database First approach, we need to have an existing database and create a a business model from which we can use the Database first approach. Before starting directly with developing in MVC, let’s start with Exploring Database first. Database first approach is used when a database is ready; then Entity […]

Read More
| by Achyut Kendre | No comments

What is Entity Framework? Approaches of Entity Framework

What is Entity Framework? “Entity Framework is an object-relational mapper (O/RM) that enables .NET developers to work with a database using .NET objects. It eliminates the need for most of the data-access code that developers usually need to write.” Entity Framework is an open-source ORM framework for .NET applications supported by Microsoft. It enables developers […]

Read More
| by Achyut Kendre | No comments

Areas in ASP.NET MVC 5

Area Example :https://drive.google.com/file/d/1eZZdAbMT_x2HOVMMpU2yvvfv-V_5EahD/view?usp=sharing What is Area in ASP.NET MVC? Area allows us to partition/divide the large application into smaller units where each unit contains a separate MVC folder structure, same as the default MVC folder structure. You can divide the aplication into areas as per use case, or sub module or module or functional unit […]

Read More
| by Achyut Kendre | No comments

What is Layout View? How to use it in ASP.NET MVC 5?

Example Source Code: – https://drive.google.com/file/d/1JXyYV5N4Wet1oAii5yrZD4ISuuiNYdSh/view?usp=sharing What is Layout View? An application may contain a specific UI portion that remains the same throughout the application, such as header, left navigation bar, right bar, or footer section. ASP.NET MVC introduced a Layout view which contains these common UI portions so that we don’t have to write the […]

Read More
| by Achyut Kendre | No comments

Model Binding and View Model

Example Link : https://drive.google.com/file/d/1SWHelMUiJLC7ekRcR1DzQkLgybmjuuWT/view?usp=sharing What is Model Binding? ASP.NET MVC model binding allows you to map HTTP request data with a model. It is the process of creating .NET objects using the data sent by the browser in an HTTP request. Model binding is a well-designed bridge between the HTTP request and the C# action […]

Read More
| by Achyut Kendre | No comments

What is View in ASP.NET MVC?

View is responsible for UI part of the application. View is just a file located in folder that is sub folder of views folder which contains UI Code. Link for Example Source Code: https://drive.google.com/file/d/1qgr4DKHx0swBp4BDDD2ul0MBd42t1Fhl/view?usp=sharing View Can contain the UI code it can be server side code with C# and Client Side Code like CSS/HTML/ Images […]

Read More
| by Achyut Kendre | No comments

How to Communicate Data from Action To View?

In this article we will try to understand how to communicate data from controller action to view. Example Source Code: https://drive.google.com/file/d/18rhAi973kxqTGDpnOV3-gh11NDzlePkz/view?usp=sharing Since Controller Action is method and View is file we should have some ways to communicate the result of processing to view to create the presentation we have following options – View Bag View […]

Read More
| by Achyut Kendre | No comments

What is Url Routing? How it works in ASP.NET MVC 5?

Example Link : https://drive.google.com/file/d/1LdPfsfpnRy0BytOUCaLJnauN6_9hRpnR/view The ASP.NET Routing module/Route Engine is responsible for mapping incoming browser requests to particular MVC controller actions. When you create a new ASP.NET MVC application, the application is already configured to use ASP.NET Routing. ASP.NET MVC uses Route Table for routing and Route table contains entires/recors called route and every route […]

Read More
| by Achyut Kendre | No comments

Action Parameters and Return Values

In this article we will learn about action parameters and return values in details – Links to download Source Code :https://drive.google.com/file/d/1pICbI7zaHkLvXVzad_guyNIPU0GBsVAr/view?usp=sharing and https://drive.google.com/file/d/1Vlj-M7RCGnD45gq70gDqNGbztHJR9tWM/view?usp=sharing Action Parameters in ASP.NET MVC Action can have primitive or complex types of parameters. If action has a primitive types of parameter’s by default it will search the values of those parameters […]

Read More