Learn ASP.NET Core MVC
Be ready next week using Visual Studio 2017
You know next to nothing about ASP.NET Core but need to start coding your next application within a week. Don't worry: this book has you covered.
With Membership
Free!
$10.99
You pay
$10.99Author earns
$8.79About
About the Book
You're a developer who knows nothing about ASP.NET Core MVC. Which is fine, except that you need to start coding your next application using ASP.NET Core 1.1 MVC and Visual Studio 2017.
Don't worry: I have you covered. I've been training hundreds of developers like you during 15 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in ASP.NET Core MVC, and will spend time only where appropriate.
Plus this book is packed with exercises which build up into a full project: you develop a small e-commerce sample web site. You’ll allow users to browse for products, and you’ll also create a back-end where authenticated users will be able to list and edit products.
Read this book, and you can code your ASP.NET Core MVC application using Visual Studio 2017 within a week. Or your money back.
Feedback
Author
About the Author
Arnaud Weil
Arnaud Weil is a born developer: when he was a kid he was controlling his electric train using an Atari ST and some self-made electronics, then as a teenager created and distributed worldwide one of the first Web browsers for some of the first pocket computers, when the Web was just beginning. In fact, he loves coding.
Turning a passion into a career, Arnaud has been coding all kinds of applications from factory tools to smartphone applications to house control solutions. His status as a freelancer allows him to help his clients with many different projects.
But what Arnaud enjoys most is helping other developers: that's why he teaches, speaks, and writes books.
Contents
Table of Contents
Introduction
- What this book is not
- Prerequisites
- How to read this book
- Tools you need
- Source code
1.Why ASP.NET Core ?
- 1.1What is it?
- 1.2Why use it?
- 1.3Competing technologies
2.ASP.NET Core at its simplest
- 2.1Setting up the server
- 2.2Very basic Startup configuration
- 2.3Barebone configuration
- 2.4ASP.NET MVC comes in
3.Creating our Web Site
- 3.1Visual Studio scaffolding
- 3.2Quick facts about that template
4.ASP.NET MVC inner workings
- 4.1Principles
- 4.2View
- 4.3Bootstrap
- 4.4Controller
- 4.5It’s your turn to code: do-it-yourself
- 4.6Exercise - Create the application
- 4.7Exercise solution
5.Razor
- 5.1Razor syntax
- 5.2Exercise - Add code to the home page
- 5.3Exercise solution
- 5.4Layout views
- 5.5Exercise - Remove some links
- 5.6Exercise solution
- 5.7Helpers
- 5.8Partial views
6.Understanding ASP.NET MVC
- 6.1Flashback
- 6.2Routing
- 6.3Controllers
- 6.4Be lazy
- 6.5Let’s go all the way
7.Typing things up
- 7.1The problem with ViewBag and ViewData
- 7.2Using and typing the model
- 7.3Conventions and simplicity: introducing the ViewModel
- 7.4Exercise
8.Dependency Injection (DI)
- 8.1DI steps
- 8.2Services registration
- 8.3Getting services through injection
- 8.4Extension methods for dependency injection
- 8.5Wrapping it up
9.Entity Framework Core models
- 9.1Exercise - Create the Product model and DbContext
- 9.2Exercise solution
- 9.3Exercise - Add code that creates a database with some products
- 9.4Exercise solution
- 9.5Exercise - Display a products list
- 9.6Exercise solution
- I need you, super-hero!
10.Updating server data
- 10.1Action parameters
- 10.2Word of caution about URLs
- 10.3Exercise - Display product details
- 10.4Exercise solution
- 10.5HTTP Post parameters
- 10.6Passing a full blown object
- 10.7Sit and watch - Basic product calculator
- 10.8Exercise - Add a search box to the products list
- 10.9Exercise solution
11.Updating data scenario
- 11.1Steps
- 11.2Controller
- 11.3Automated generation of controller and views
- 11.4Exercise - Create the products management back-office
- 11.5Exercise solution - Create the products management back-office
12.Doing more with controllers and actions
- 12.1Actions can generate more than views
- 12.2Exercise - Add images to the products
- 12.3Exercise solution - Add images to the products
- 12.4Input validation
13.Basic security
- 13.1Preventing Cross-Site Scripting
- 13.2Rejecting extra fields
- 13.3Authenticating users
- 13.4Exercise - Secure the back-office
- 13.5Exercise solution - Secure the back-office
14.State management
- 14.1State stores
- 14.2Session state
- 14.3Exercise - Add products to a basket
- 14.4Exercise solution - Add products to a basket
- 14.5Exercise - Basket contents
- 14.6Exercise solution - Basket contents
15.Web API
- 15.1Use cases
- 15.2Creating an API is simple
- 15.3API results format
16.Going further
- 16.1Creating Razor helpers
- 16.2Display and edit templates
Definitions
- Dynamic object
- Entity Framework
- Project
- Solution
- Solution Explorer
A word from the author
The Learn collection
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.