Learn ASP.NET Core MVC
Learn ASP.NET Core MVC
Be ready next week using Visual Studio 2017
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.
- What this book is not
- How to read this book
- Tools you need
- Source code
1. Why ASP.NET Core ?
- 1.1 What is it?
- 1.2 Why use it?
- 1.3 Competing technologies
2. ASP.NET Core at its simplest
- 2.1 Setting up the server
- 2.2 Very basic Startup configuration
- 2.3 Barebone configuration
- 2.4 ASP.NET MVC comes in
3. Creating our Web Site
- 3.1 Visual Studio scaffolding
- 3.2 Quick facts about that template
4. ASP.NET MVC inner workings
- 4.1 Principles
- 4.2 View
- 4.3 Bootstrap
- 4.4 Controller
- 4.5 It’s your turn to code: do-it-yourself
- 4.6 Exercise - Create the application
- 4.7 Exercise solution
- 5.1 Razor syntax
- 5.2 Exercise - Add code to the home page
- 5.3 Exercise solution
- 5.4 Layout views
- 5.5 Exercise - Remove some links
- 5.6 Exercise solution
- 5.7 Helpers
- 5.8 Partial views
6. Understanding ASP.NET MVC
- 6.1 Flashback
- 6.2 Routing
- 6.3 Controllers
- 6.4 Be lazy
- 6.5 Let’s go all the way
7. Typing things up
- 7.1 The problem with ViewBag and ViewData
- 7.2 Using and typing the model
- 7.3 Conventions and simplicity: introducing the ViewModel
- 7.4 Exercise
8. Dependency Injection (DI)
- 8.1 DI steps
- 8.2 Services registration
- 8.3 Getting services through injection
- 8.4 Extension methods for dependency injection
- 8.5 Wrapping it up
9. Entity Framework Core models
- 9.1 Exercise - Create the Product model and DbContext
- 9.2 Exercise solution
- 9.3 Exercise - Add code that creates a database with some products
- 9.4 Exercise solution
- 9.5 Exercise - Display a products list
- 9.6 Exercise solution
10. Updating server data
- 10.1 Action parameters
- 10.2 Word of caution about URLs
- 10.3 Exercise - Display product details
- 10.4 Exercise solution
- 10.5 HTTP Post parameters
- 10.6 Passing a full blown object
- 10.7 Sit and watch - Basic product calculator
- 10.8 Exercise - Add a search box to the products list
- 10.9 Exercise solution
11. Updating data scenario
- 11.1 Steps
- 11.2 Controller
- 11.3 Automated generation of controller and views
- 11.4 Exercise - Create the products management back-office
- 11.5 Exercise solution - Create the products management back-office
12. Doing more with controllers and actions
- 12.1 Actions can generate more than views
- 12.2 Exercise - Add images to the products
- 12.3 Exercise solution - Add images to the products
- 12.4 Input validation
13. Basic security
- 13.1 Preventing Cross-Site Scripting
- 13.2 Rejecting extra fields
- 13.3 Authenticating users
- 13.4 Exercise - Secure the back-office
- 13.5 Exercise solution - Secure the back-office
14. State management
- 14.1 State stores
- 14.2 Session state
- 14.3 Exercise - Add products to a basket
- 14.4 Exercise solution - Add products to a basket
- 14.5 Exercise - Basket contents
- 14.6 Exercise solution - Basket contents
15. Web API
- 15.1 Use cases
- 15.2 Creating an API is simple
- 15.3 API results format
16. Going further
- 16.1 Creating Razor helpers
- 16.2 Display and edit templates
- Dynamic object
- Entity Framework
- Solution Explorer
- A word from the author
- The Learn collection
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...
80% Royalties. Earn $16 on a $20 book.
We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $12 millionwriting, 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.