SlideShare a Scribd company logo
1 of 6
Name: Toushik Paul , ID : 143-15-4497
Subject: Web Engineering
Submitted to: Dewan Ziaul Karim
Daffodil International University
ASSIGNMENT
What is Framework?
The word FRAMEWORK is thecombination of two words, i.e., FRAME and WORK. It means, one FRAMEhas already been
designed and developer has to WORK on that FRAMEto meet his/her project requirements. It’s just a tool, which helps a
developer to code better and faster.
In computer language, a Framework is a universal, reusable softwareplatformto develop softwareapplications, products and
solutions. In other words, we can say it is some kind of library, a piece of software, which provides web developers with code
base and consistent standardized ways of creating web applications.
Back when PHP and other technology started, developers were writing their own customcode for each functionality. Later, some
peoplerealized that, writing thesame code every time, in every page, not reusing it extensively, plain PHP is not so effective.
Afterwards, as the PHP object model developed (especially with thelaunch of PHP 5), framework development really came into
action and became so popular.
So, let’s check what are the key benefits of using a Framework, especially in PHP.
 Organizing Code and File
 The MVC Pattern
 Enforcing of Good Coding Standards
 Utilities and Libraries
 Less Code & Faster Development
 Security
 Performance Tools
 Simplified and Pretty URLs
 Efficiently Access Database
WhatisMVC framework?
The Model-View-Controller(MVC) is an architectural pattern that separates an application into three main logical components:
the model, the view, and the controller. Each of these components are built to handle specific development aspects of an
application. MVC is one of the most frequently used industry-standard web development framework to create scalable and
extensible projects.
MVCComponents
Following are the components of MVC −
Model
The Modelcomponent corresponds to all the data-related logic that the user works with. This can represent either the data that is
being transferred between theView and Controller components or any other business logic-related data. For example, a Customer
object will retrieve the customer information from the database, manipulate it and updateit data back to the database or use it to
render data.
View
The View component is used for all the UI logic of the application. For example, the Customer view will include all the UI
components such as text boxes, dropdowns, etc. that the final user interacts with.
Controller
Controllers act as an interface between Model and View components to process all the business logic and incoming requests,
manipulate data using the Model component and interact with the Views to render the final output. For example, the Customer
controller will handle all theinteractions and inputs fromthe Customer View and updatethe database using theCustomer Model.
The same controller will be used to view the Customer data.
ASP.NETMVC
ASP.NET supports three major development models: Web Pages, Web Forms and MVC (Model View Controller). ASP.NET
MVC framework is a lightweight, highly testable presentation framework that is integrated with the existing ASP.NET features,
such as master pages, authentication, etc. Within .NET, this framework is defined in the System.Web.Mvcassembly. The latest
version of the MVC Framework is 5.0. We use Visual Studio to create ASP.NET MVC applications which can be added as a
template in Visual Studio.
ASP.NET MVC Features
ASP.NET MVC provides the following features −
 Ideal for developing complex but lightweight applications.
 Provides an extensible and pluggable framework, which can be easily replaced and customized. For example, if you do
not wish to use the in-built Razor or ASPX View Engine, then you can use any other third-party view engines or even
customize the existing ones.
 Utilizes the component-based design of the application by logically dividing it into Model, View, and Controller
components. This enables the developers to manage the complexity of large-scale projects and work on individual
components.
 MVC structureenhances the test-driven development and testability of the application, since all the components can be
designed interface-based and tested using mock objects. Hence, ASP.NET MVC Framework is ideal for projects with
large team of web developers.
 Supports all the existing vast ASP.NET functionalities, such as Authorization and Authentication, Master Pages, Data
Binding, User Controls, Memberships, ASP.NET Routing, etc.
ASP.NetFramework:MVC, Web Api , Entity Framework ,Web Forms ,Empty Forms etc.
Example application using one of framework: In here we are using MVC and Entity Framework and
build and run this sample as-is, you must have Visual Studio 2013 or Visual Studio 2013 Express for Web installed. If you have
Visual Studio 2015, change theconnection string in theWeb.config file so that the SQL Server instance name is
MSSQLLocalDB instead of v11.0.
In most cases you can run the application by following these steps:
1. Download and extract the .zip file.
2. Open the solution file in Visual Studio.
3. Build thesolution, which automatically installs themissing NuGet packages.
4. Open the Package Manager Console, and run the update-databasecommand to create the database.
5. Run the application.
If you have any problems with thoseinstructions, follow theselonger instructions.
1. Download the .zip file.
2. In File Explorer, right-click the.zip file and click Properties, then in the Properties window click Unblock.
3. Unzip thefile.
4. Double-click the.sln file to launch Visual Studio.
5. From the Tools menu, click Library Package Manager, then Package Manager Console.
6. In the Package Manager Console (PMC), click Restore.
7. Each migration will run, then the seed method will run. You can now run theapplication.
Running the Sample
To run the sample, hit F5 or choose the Debug | Start Debugging menu command. You will see the home page which
includes a menu bar. (In a narrow browser window you'll have to click the symbol at the top right of the page in order
to see the menu).From this page you can select any of the tabs to perform various actions such as display a list of
students, add new students, display a list of instructors, and so forth.
Screenshots:
MVCsourceCode:
Conroller:
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using practice_Much.Models;
using Practice2.Models;
namespace practice_Much.Controllers
{
public class RestauarantManagementController : ApiController
{
public ApplicationDbContext _Context;
private object foodItem;
public RestauarantManagementController()
{
_Context = new ApplicationDbContext();
}
[HttpGet]
[Route("api/Menu")]
public SetMenuVIewModel SetMenuVIewModel()
{
///var foodItem = _Context.FoodItems.GroupBy(p => p).ToDictionary(p => p.
Key.Name, p => p.ToList());
var setMenu = _Context.SetMenus.Include(a => a.SetMenuItem).ToList();
var menu = new SetMenuVIewModel() { SetMenus = setMenu, FoodCategories =
foodItem };
return menu;
}
}
}
Route Directory:
Model: using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Practice2.Models
{
public class SetMenuItem
{
public int Id { get; set; }
public SetMenu SetMenu{ get; set; }
public int SetMenuId { get; set; }
public FoodItem FoodItem { get; set; }
public int FoodItemId { get; set; }
public int Quantity { get; set; }
}
}
Reference
http://www.phpandstuff.com/articles/top-10-reasons-why-you-should-use-a-php-framework
http://code.tutsplus.com/tutorials/10-compelling-reasons-to-use-zend-framework--net-12214
https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8

More Related Content

What's hot

MVC for Desktop Application - Part 2
MVC for Desktop Application - Part  2MVC for Desktop Application - Part  2
MVC for Desktop Application - Part 2晟 沈
 
MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3晟 沈
 
MVC for Desktop Application - Part 1
MVC for Desktop Application - Part 1MVC for Desktop Application - Part 1
MVC for Desktop Application - Part 1晟 沈
 
MVC for Desktop Application - Part 4
MVC for Desktop Application - Part 4MVC for Desktop Application - Part 4
MVC for Desktop Application - Part 4晟 沈
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobilenaral
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC IntroductionSumit Chhabra
 
7 must have word press plugins for web developers
7 must have word press plugins for web developers7 must have word press plugins for web developers
7 must have word press plugins for web developersHireWPGeeks Ltd
 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc Micky S
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )Ahmed Emad
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnetrainynovember12
 
Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Jennie Gajjar
 
MVVM presentation
MVVM presentationMVVM presentation
MVVM presentationInova LLC
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot netneha sharma
 
10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)Mandar Majmudar
 

What's hot (20)

MVC for Desktop Application - Part 2
MVC for Desktop Application - Part  2MVC for Desktop Application - Part  2
MVC for Desktop Application - Part 2
 
MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3MVC for Desktop Application - Part 3
MVC for Desktop Application - Part 3
 
MVC for Desktop Application - Part 1
MVC for Desktop Application - Part 1MVC for Desktop Application - Part 1
MVC for Desktop Application - Part 1
 
MVC for Desktop Application - Part 4
MVC for Desktop Application - Part 4MVC for Desktop Application - Part 4
MVC for Desktop Application - Part 4
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
7 must have word press plugins for web developers
7 must have word press plugins for web developers7 must have word press plugins for web developers
7 must have word press plugins for web developers
 
Basics of asp.net mvc
Basics of asp.net mvc Basics of asp.net mvc
Basics of asp.net mvc
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnet
 
Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01Mvc 130330091359-phpapp01
Mvc 130330091359-phpapp01
 
Php framework
Php frameworkPhp framework
Php framework
 
MVVM presentation
MVVM presentationMVVM presentation
MVVM presentation
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
 
Ps02 cint24 mvc in php
Ps02 cint24 mvc in phpPs02 cint24 mvc in php
Ps02 cint24 mvc in php
 
MVC architecture
MVC architectureMVC architecture
MVC architecture
 
10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)10 top web development frameworks (new version 21 11)
10 top web development frameworks (new version 21 11)
 
Android MVVM
Android MVVMAndroid MVVM
Android MVVM
 
MVC Architecture
MVC ArchitectureMVC Architecture
MVC Architecture
 

Similar to A report on mvc using the information

Web application framework
Web application frameworkWeb application framework
Web application frameworkPankaj Chand
 
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5  Building Your First Web Application (A Beginner S GuideASP.NET MVC 5  Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5 Building Your First Web Application (A Beginner S GuideAlicia Buske
 
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...ijseajournal
 
2014_report
2014_report2014_report
2014_reportK SEZER
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayLanate Drummond
 
5 Front End Frameworks to Master in Web Development.pdf
5 Front End Frameworks to Master in Web Development.pdf5 Front End Frameworks to Master in Web Development.pdf
5 Front End Frameworks to Master in Web Development.pdfMverve1
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxWhat Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxQuickwayInfoSystems3
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxWhat Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxQuickwayInfoSystems3
 
Software design.edited (1)
Software design.edited (1)Software design.edited (1)
Software design.edited (1)FarjanaAhmed3
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET Journal
 
Angular JS Basics
Angular JS BasicsAngular JS Basics
Angular JS BasicsMounish Sai
 
Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)Shubham Goenka
 

Similar to A report on mvc using the information (20)

Web application framework
Web application frameworkWeb application framework
Web application framework
 
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5  Building Your First Web Application (A Beginner S GuideASP.NET MVC 5  Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
 
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...
SOFTWARE BUILD AUTOMATION TOOLS A COMPARATIVE STUDY BETWEEN MAVEN, GRADLE, BA...
 
ASP.NET MVC3 RAD
ASP.NET MVC3 RADASP.NET MVC3 RAD
ASP.NET MVC3 RAD
 
2014_report
2014_report2014_report
2014_report
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing Essay
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
MVC
MVCMVC
MVC
 
Php Framework
Php FrameworkPhp Framework
Php Framework
 
5 Front End Frameworks to Master in Web Development.pdf
5 Front End Frameworks to Master in Web Development.pdf5 Front End Frameworks to Master in Web Development.pdf
5 Front End Frameworks to Master in Web Development.pdf
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxWhat Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
 
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptxWhat Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Software design.edited (1)
Software design.edited (1)Software design.edited (1)
Software design.edited (1)
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
 
Angular JS Basics
Angular JS BasicsAngular JS Basics
Angular JS Basics
 
Spring Framework-II
Spring Framework-IISpring Framework-II
Spring Framework-II
 
Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)
 
dot net
dot netdot net
dot net
 
Mvp pattern
Mvp patternMvp pattern
Mvp pattern
 

More from Toushik Paul

Diagnosis of lung cancer prediction system using data mining Classification T...
Diagnosis of lung cancer predictionsystem using data mining Classification T...Diagnosis of lung cancer predictionsystem using data mining Classification T...
Diagnosis of lung cancer prediction system using data mining Classification T...Toushik Paul
 
How to remove shortcut virus from pendrive bangla
How to remove shortcut virus from pendrive bangla How to remove shortcut virus from pendrive bangla
How to remove shortcut virus from pendrive bangla Toushik Paul
 
Gas & smoke detector Report
Gas & smoke detector ReportGas & smoke detector Report
Gas & smoke detector ReportToushik Paul
 
Gas & smoke detector
Gas & smoke detectorGas & smoke detector
Gas & smoke detectorToushik Paul
 

More from Toushik Paul (6)

3D Display
3D Display3D Display
3D Display
 
Diagnosis of lung cancer prediction system using data mining Classification T...
Diagnosis of lung cancer predictionsystem using data mining Classification T...Diagnosis of lung cancer predictionsystem using data mining Classification T...
Diagnosis of lung cancer prediction system using data mining Classification T...
 
How to remove shortcut virus from pendrive bangla
How to remove shortcut virus from pendrive bangla How to remove shortcut virus from pendrive bangla
How to remove shortcut virus from pendrive bangla
 
Http-protocol
Http-protocolHttp-protocol
Http-protocol
 
Gas & smoke detector Report
Gas & smoke detector ReportGas & smoke detector Report
Gas & smoke detector Report
 
Gas & smoke detector
Gas & smoke detectorGas & smoke detector
Gas & smoke detector
 

Recently uploaded

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

A report on mvc using the information

  • 1. Name: Toushik Paul , ID : 143-15-4497 Subject: Web Engineering Submitted to: Dewan Ziaul Karim Daffodil International University ASSIGNMENT
  • 2. What is Framework? The word FRAMEWORK is thecombination of two words, i.e., FRAME and WORK. It means, one FRAMEhas already been designed and developer has to WORK on that FRAMEto meet his/her project requirements. It’s just a tool, which helps a developer to code better and faster. In computer language, a Framework is a universal, reusable softwareplatformto develop softwareapplications, products and solutions. In other words, we can say it is some kind of library, a piece of software, which provides web developers with code base and consistent standardized ways of creating web applications. Back when PHP and other technology started, developers were writing their own customcode for each functionality. Later, some peoplerealized that, writing thesame code every time, in every page, not reusing it extensively, plain PHP is not so effective. Afterwards, as the PHP object model developed (especially with thelaunch of PHP 5), framework development really came into action and became so popular. So, let’s check what are the key benefits of using a Framework, especially in PHP.  Organizing Code and File  The MVC Pattern  Enforcing of Good Coding Standards  Utilities and Libraries  Less Code & Faster Development  Security  Performance Tools  Simplified and Pretty URLs  Efficiently Access Database WhatisMVC framework? The Model-View-Controller(MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application. MVC is one of the most frequently used industry-standard web development framework to create scalable and extensible projects. MVCComponents Following are the components of MVC − Model The Modelcomponent corresponds to all the data-related logic that the user works with. This can represent either the data that is being transferred between theView and Controller components or any other business logic-related data. For example, a Customer object will retrieve the customer information from the database, manipulate it and updateit data back to the database or use it to render data.
  • 3. View The View component is used for all the UI logic of the application. For example, the Customer view will include all the UI components such as text boxes, dropdowns, etc. that the final user interacts with. Controller Controllers act as an interface between Model and View components to process all the business logic and incoming requests, manipulate data using the Model component and interact with the Views to render the final output. For example, the Customer controller will handle all theinteractions and inputs fromthe Customer View and updatethe database using theCustomer Model. The same controller will be used to view the Customer data. ASP.NETMVC ASP.NET supports three major development models: Web Pages, Web Forms and MVC (Model View Controller). ASP.NET MVC framework is a lightweight, highly testable presentation framework that is integrated with the existing ASP.NET features, such as master pages, authentication, etc. Within .NET, this framework is defined in the System.Web.Mvcassembly. The latest version of the MVC Framework is 5.0. We use Visual Studio to create ASP.NET MVC applications which can be added as a template in Visual Studio. ASP.NET MVC Features ASP.NET MVC provides the following features −  Ideal for developing complex but lightweight applications.  Provides an extensible and pluggable framework, which can be easily replaced and customized. For example, if you do not wish to use the in-built Razor or ASPX View Engine, then you can use any other third-party view engines or even customize the existing ones.  Utilizes the component-based design of the application by logically dividing it into Model, View, and Controller components. This enables the developers to manage the complexity of large-scale projects and work on individual components.  MVC structureenhances the test-driven development and testability of the application, since all the components can be designed interface-based and tested using mock objects. Hence, ASP.NET MVC Framework is ideal for projects with large team of web developers.  Supports all the existing vast ASP.NET functionalities, such as Authorization and Authentication, Master Pages, Data Binding, User Controls, Memberships, ASP.NET Routing, etc. ASP.NetFramework:MVC, Web Api , Entity Framework ,Web Forms ,Empty Forms etc.
  • 4. Example application using one of framework: In here we are using MVC and Entity Framework and build and run this sample as-is, you must have Visual Studio 2013 or Visual Studio 2013 Express for Web installed. If you have Visual Studio 2015, change theconnection string in theWeb.config file so that the SQL Server instance name is MSSQLLocalDB instead of v11.0. In most cases you can run the application by following these steps: 1. Download and extract the .zip file. 2. Open the solution file in Visual Studio. 3. Build thesolution, which automatically installs themissing NuGet packages. 4. Open the Package Manager Console, and run the update-databasecommand to create the database. 5. Run the application. If you have any problems with thoseinstructions, follow theselonger instructions. 1. Download the .zip file. 2. In File Explorer, right-click the.zip file and click Properties, then in the Properties window click Unblock. 3. Unzip thefile. 4. Double-click the.sln file to launch Visual Studio. 5. From the Tools menu, click Library Package Manager, then Package Manager Console. 6. In the Package Manager Console (PMC), click Restore. 7. Each migration will run, then the seed method will run. You can now run theapplication. Running the Sample To run the sample, hit F5 or choose the Debug | Start Debugging menu command. You will see the home page which includes a menu bar. (In a narrow browser window you'll have to click the symbol at the top right of the page in order to see the menu).From this page you can select any of the tabs to perform various actions such as display a list of students, add new students, display a list of instructors, and so forth. Screenshots: MVCsourceCode: Conroller:
  • 5. using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using practice_Much.Models; using Practice2.Models; namespace practice_Much.Controllers { public class RestauarantManagementController : ApiController { public ApplicationDbContext _Context; private object foodItem; public RestauarantManagementController() { _Context = new ApplicationDbContext(); } [HttpGet] [Route("api/Menu")] public SetMenuVIewModel SetMenuVIewModel() { ///var foodItem = _Context.FoodItems.GroupBy(p => p).ToDictionary(p => p. Key.Name, p => p.ToList()); var setMenu = _Context.SetMenus.Include(a => a.SetMenuItem).ToList(); var menu = new SetMenuVIewModel() { SetMenus = setMenu, FoodCategories = foodItem }; return menu; } } } Route Directory: Model: using System; using System.Collections.Generic;
  • 6. using System.Linq; using System.Web; namespace Practice2.Models { public class SetMenuItem { public int Id { get; set; } public SetMenu SetMenu{ get; set; } public int SetMenuId { get; set; } public FoodItem FoodItem { get; set; } public int FoodItemId { get; set; } public int Quantity { get; set; } } } Reference http://www.phpandstuff.com/articles/top-10-reasons-why-you-should-use-a-php-framework http://code.tutsplus.com/tutorials/10-compelling-reasons-to-use-zend-framework--net-12214 https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8