The blog is all about knowledge sharing on Microsoft .net technologies
Showing posts with label MVC. Show all posts
Showing posts with label MVC. Show all posts
Entity Framework Tutorial For Beginners
In my last article, I have explained how to create simple asp.net mvc application. So let us move further and understand how can we build data access layer using entity framework.Before we begin with development, let us understand few concepts.
Understanding MVC Action Filters
MVC action methods allows to process the incoming request
and perform necessary action on it. However, if there is need where in you
would want to process the request before it hits any action methods or perform
post processing after action method is executed. This is where MVC Action
filters play’s vital role in pre-processing or post processing the request.
Additionally, filters allows to inject custom logic at different stages of
action method execution.
|
|
asp.net mvc tutorial for beginner
Hello Friends! : Welcome to my technical blog. In this asp.net MVC tutorial, I will be explaining about basic concepts of asp.net MVC.
Basics of Asp.net MVC
In software application design, MVC is most widely used architectural pattern that allows us to develop robust applications consisting of three main components (Model, View, Controller) that are loosely coupled, extensible and can be tested independently. MVC is primarily used for web application development.
![]() |
BASICS OF ROUTING IN MVC
In simple words: Routing is process of mapping incoming request url to a resource, which can serve the request.
Why do we need routes? Aren’t our web application and web servers not capable of matching user request to specific resource/web page (.html or aspx or php) on the server? The answer is “Yes”. However, let say user requests a page or URL that doesn’t exist on server at all. What do we do in that case? Showing 404 page always is not good idea. This is where routing comes to rescue. Using routing you can define routes that need not always map against physical file on the server
Why do we need routes? Aren’t our web application and web servers not capable of matching user request to specific resource/web page (.html or aspx or php) on the server? The answer is “Yes”. However, let say user requests a page or URL that doesn’t exist on server at all. What do we do in that case? Showing 404 page always is not good idea. This is where routing comes to rescue. Using routing you can define routes that need not always map against physical file on the server
Dependency injection in MVC
Today I would like to share my thoughts on dependency injection in MVC. If you are not familiar with MVC, i would suggest to read my article about MVC first.
What is Dependency Injection?
In simple words dependency injection (DI) means injecting a new functionality (let say X) to a base functionality without making any changes it. Later, functionality X can be replaced by Functionality Y with no impact on base functionality.
Subscribe to:
Posts (Atom)

