Please enable JavaScript.
Coggle requires JavaScript to display documents.
GETTING_STARTED, RC - Right Click - Coggle Diagram
GETTING_STARTED
MVC
Model
Application
Data
Behaviour
UI-Independent
POCO
Plain-Old
CLR-Objects
View
HTML-markup
Controller
Http-request
Handler
Developed
1970
User-Interfaces
Adopted
Web
Frameworks
ASP.NET-MVC
Ruby-on-Rails
Express
Router
Selects
Right
Action
Controller
For-Request
Benefits
Separation
Of-Concerns
Maintainable
USING
Model
RC-Models
Add > Class
Add-Property
Name
Id
Controller
RC-Controller
Add > Controller
MVC 5 Controller - Empty
CreatedClass
Extends
Controller
Action
Default
Index()
Returns
ActionResult
Render
Model
Return
View(modelObj)
Views
In-ViewsFolder
RC-ModelName
Add > View
NameView
PartialView
Untick
UseLayout
Shared/_Layout
CsHtml
Mixture
C#-HTML
C#
Prefixed-@
ViewBag.Title
PageTitle
Layout
ModelType
Specify
'@model
Vidly.Models.Movie
Run
Ctrl+F5
Build
Ctrl+Shit+B
SOLUTION-EXPLORER
C#-code
App_Start
ClassFiles
RouteConfig.cs
Routing-rules
Name
Default
Pattern
{controller}/{action}/{id}
/movies/popular
MoviesController.Popular()
/movies/edit/1
MoviesController.Edit(1)
Default
Controller
Home
Action
Index
id
UrlParameter.Optional
Controllers
Defaults-3
AccountController
HomeController
ManageController
ChangePass
2FA
SocialLogin
Models
DomainClasses
Views
Has-Folders
Controller
Named
SharedFolder
B/w
Controllers
THEME
Reference
Change
App_Start/BundleConfig.cs
DefaultBundles
~/bundles/<>
jquery
jqueryval
modernizr
bootstrap
~/Content/css
bundles.Add(...)
new ScriptBundle(outFile)
.Include(f1, f2)
ENVIRONMENT
VisualStudio
'> 2013
Plugins
How
Tools
Extension&Updates
Online
VisualStudio
PowerProductivity
WebEssentials
FIRST-APP
Creating
File > New
Project > Web
ASP.NET Web App
Give
Name
SourceControl
Tick
MVC-Template
Select
Host-in-Cloud
Untick
SolutionExplorer
Folders
C#-code
Models
Views
Controllers
App_Start
Non-C#
Scripts
JS-files
fonts
Content
CSS
Images
Assets
App_Data
DB-files
Files
packages.config
NuGet
Dependency
Management
Startup.cs
Future
Replace
Global.asax
Web.config
AppConfig
XML
connectionStrings
To-DB
appSettings
Global.asax
Provides
Hooks
Lifecycle
Application_Start
Method
Registers
Routes
Bundles
RC - Right Click