舉報(bào)

會(huì)員
ASP.NET Core 2 Fundamentals
Thebooksetsthestagewithanintroductiontowebapplicationsandhelpsyoubuildanunderstandingofthetried-and-trueMVCarchitecture.Youlearnallaboutviews,fromwhatistheRazorviewenginetotagginghelpers.Yougaininsightintowhatmodelsare,howtobindthem,andhowtomigratedatabaseusingthecorrectmodel.AsyougetcomfortablewiththeworldofASP.NET,youlearnaboutvalidationandrouting.Youalsolearntheadvancedconcepts,suchasdesigningRestBuy(aRESTfulshoppingcartapplication),creatingentitiesforit,andcreatingEFcontextandmigrations.Bythetimeyouaredonereadingthebook,youwillbeabletooptimallyuseASP.NETtodevelop,unittest,anddeployapplicationslikeapro.
最新章節(jié)
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Deploying Rest Buy to Azure
- Prerequisites to Azure Deployment
- Signing up to Microsoft Azure
品牌:中圖公司
上架時(shí)間:2021-07-23 15:48:54
出版社:Packt Publishing
本書數(shù)字版權(quán)由中圖公司提供,并由其授權(quán)上海閱文信息技術(shù)有限公司制作發(fā)行
- Leave a review - let other readers know what you think 更新時(shí)間:2021-07-23 17:10:17
- Other Books You May Enjoy
- Summary
- Deploying Rest Buy to Azure
- Prerequisites to Azure Deployment
- Signing up to Microsoft Azure
- Deploying RestBuy to Azure
- Activity: Adding a EULA Agreement
- Upgrading Our Project to Bootstrap 4
- Activity: Writing a Unit Test for Deletion
- Running the Unit Test
- Writing a Unit Test
- Creating a Unit Test
- Validating the Registration
- Creating a Query for the Registration Service
- Creating the Post-Registration Landing Page
- Defining our Controllers
- Defining our ViewModel for Registration
- Performing Implementations in the Infrastructure Project
- Creating the Application Layer
- Sign In and Sign Out Mechanism
- Adding the Registration Feature
- Adding Features Testing and Deployment
- Summary
- Activity: Adding a Supplier Entity that Denotes the Supplier of a Product
- Create migrations
- Create EF Context and Migrations
- Creating the Entities
- Activity: Designing a Domain Model for a Website
- Activity: Preparing Wireframe Diagrams for a Website
- Activity: Preparing Features and Stories for a Website
- Creating a RestBuy Project
- Defining our Domain and Model
- Previous Orders
- Checkout Success
- Checkout
- Product Detail
- Main Page
- Layout and Pages
- Features and Stories
- Designing Rest Buy
- Rest Buy
- Summary
- Activity: Creating an Attribute that Implements IActionConstraintFactory
- Route Constraints
- Activity: Defining Two Actions with the Same Name with Different Verbs
- Passing Routing Values in HTTP Action Verbs in the Controller
- Activity: Combining Route Templates that Begin with /
- Token Replacement in Route Templates
- Route Attribute at the Controller Level
- Working on an Example of Attribute-Based Routing
- Attribute-Based Routing
- Convention-Based Routing
- Routing
- Summary
- Activity: Adding a New Validation Rule for Designation by Extending ValidationAttribute
- Implementation
- Activity: Adding a New Validation Rule to a JavaScript Function
- Performing Client-Side Validation
- Client-Side Validation
- Activity: Adding a New Validation Rule for Designation
- Updating the Controller Action Method to Verify the Model State
- Updating the ViewModel to Display the Validation Error Message
- Updating ViewModels with the Data Annotation Attribute
- Server-Side Validation
- Client-Side and Server-Side Validation
- Introduction to Validation
- Validation
- Summary
- Database Migration
- Using Entity Framework in ASP.NET MVC Applications
- Activity: Controlling the Transaction Manually
- Deleting the Record
- Updating the Record
- How the SaveChanges Method Works
- Creating a Migration
- Creating the DbContext Class
- Creating Model Classes
- Installing Entity Framework Commands
- Using the NuGet Package Manager
- Installing Entity Framework Core NuGet Package
- Creating Console Applications with Entity Framework
- Entity Framework
- Model Binding
- Activity: Revising the Code to Show Discount in the Total
- Data Flow with Respect to a Model
- ViewModels
- Models Specific to a View Component
- Creating an ASP.NET Core Application
- Introduction to Models
- Models
- Summary
- Activity: Replacing Email Tag Helpers
- Creating a Custom Tag Helper
- Custom Tag Helpers
- Tag Helpers
- Activity: Passing a String as Additional Data
- Creating a ViewComponent Attribute
- Creating a View Component
- View Components
- Activity: Working with Static Data
- Calling a Partial View
- Partial View
- Activity: Making Use of a Checkbox
- Generating a form using HTML Helpers
- HTML Helpers
- Generating HTML using a Simple Form
- Generating HTML
- Activity: Creating Another Layout and Changing the View to That Layout
- Adding a Page-Specific View
- Creating _Layout.cshtml
- Creating _ViewStart.cshtml
- Building our First Layout
- Layout
- Activity: Printing Prime Numbers from 1 to 100
- Programming Constructs in the Razor View
- Working with Razor View
- Variables in the Razor View
- Programming in the Razor View Engine
- The Razor View Engine
- The View Engine and the Razor View Engine
- Views
- Summary
- Activity: Writing a Custom Filter
- Filters
- Passing Data from the Controller to the View
- Adding Models
- Adding Views
- Activity: Implementing Your Own IActionResult
- IActionResult
- Our First Controller
- Installing the ASP.NET Core NuGet Package in Your Application
- Activity: Finding the Correct Method Invoked for a URL
- Introduction to Routing
- Ideal Flow of Data for a Layered Web Application
- Role of the Controller in ASP.NET MVC Applications
- Controllers
- Summary
- Creating Your First Application
- Creating Your First Project
- A File-Based Project
- The Model-View-Controller Pattern
- ASP.NET MVC
- Introduction to ASP.NET
- Activity: Working with the Request-Response Pattern
- Other Methods
- List of Important Methods
- The POST Method
- The GET Method
- Working with HTTP Methods
- Programming Styles – RPC versus REST
- Client Side and Server Side
- Work with the Statelessness and the Request-Response Pattern
- Advantages to HTTP
- Stateless Nature of HTTP
- Request-Response Pattern
- HTTP/2's Edge over HTTP/1.x
- What is the HTTP Protocol?
- How Web Applications Work
- Introduction to Web Applications
- Setting the Stage
- Reviews
- Get in touch
- Conventions used
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the authors
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- ASP.NET Core 2 Fundamentals
- Copyright and Credits
- Title Page
- 封面
- 封面
- Title Page
- Copyright and Credits
- ASP.NET Core 2 Fundamentals
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Contributors
- About the authors
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Conventions used
- Get in touch
- Reviews
- Setting the Stage
- Introduction to Web Applications
- How Web Applications Work
- What is the HTTP Protocol?
- HTTP/2's Edge over HTTP/1.x
- Request-Response Pattern
- Stateless Nature of HTTP
- Advantages to HTTP
- Work with the Statelessness and the Request-Response Pattern
- Client Side and Server Side
- Programming Styles – RPC versus REST
- Working with HTTP Methods
- The GET Method
- The POST Method
- List of Important Methods
- Other Methods
- Activity: Working with the Request-Response Pattern
- Introduction to ASP.NET
- ASP.NET MVC
- The Model-View-Controller Pattern
- A File-Based Project
- Creating Your First Project
- Creating Your First Application
- Summary
- Controllers
- Role of the Controller in ASP.NET MVC Applications
- Ideal Flow of Data for a Layered Web Application
- Introduction to Routing
- Activity: Finding the Correct Method Invoked for a URL
- Installing the ASP.NET Core NuGet Package in Your Application
- Our First Controller
- IActionResult
- Activity: Implementing Your Own IActionResult
- Adding Views
- Adding Models
- Passing Data from the Controller to the View
- Filters
- Activity: Writing a Custom Filter
- Summary
- Views
- The View Engine and the Razor View Engine
- The Razor View Engine
- Programming in the Razor View Engine
- Variables in the Razor View
- Working with Razor View
- Programming Constructs in the Razor View
- Activity: Printing Prime Numbers from 1 to 100
- Layout
- Building our First Layout
- Creating _ViewStart.cshtml
- Creating _Layout.cshtml
- Adding a Page-Specific View
- Activity: Creating Another Layout and Changing the View to That Layout
- Generating HTML
- Generating HTML using a Simple Form
- HTML Helpers
- Generating a form using HTML Helpers
- Activity: Making Use of a Checkbox
- Partial View
- Calling a Partial View
- Activity: Working with Static Data
- View Components
- Creating a View Component
- Creating a ViewComponent Attribute
- Activity: Passing a String as Additional Data
- Tag Helpers
- Custom Tag Helpers
- Creating a Custom Tag Helper
- Activity: Replacing Email Tag Helpers
- Summary
- Models
- Introduction to Models
- Creating an ASP.NET Core Application
- Models Specific to a View Component
- ViewModels
- Data Flow with Respect to a Model
- Activity: Revising the Code to Show Discount in the Total
- Model Binding
- Entity Framework
- Creating Console Applications with Entity Framework
- Installing Entity Framework Core NuGet Package
- Using the NuGet Package Manager
- Installing Entity Framework Commands
- Creating Model Classes
- Creating the DbContext Class
- Creating a Migration
- How the SaveChanges Method Works
- Updating the Record
- Deleting the Record
- Activity: Controlling the Transaction Manually
- Using Entity Framework in ASP.NET MVC Applications
- Database Migration
- Summary
- Validation
- Introduction to Validation
- Client-Side and Server-Side Validation
- Server-Side Validation
- Updating ViewModels with the Data Annotation Attribute
- Updating the ViewModel to Display the Validation Error Message
- Updating the Controller Action Method to Verify the Model State
- Activity: Adding a New Validation Rule for Designation
- Client-Side Validation
- Performing Client-Side Validation
- Activity: Adding a New Validation Rule to a JavaScript Function
- Implementation
- Activity: Adding a New Validation Rule for Designation by Extending ValidationAttribute
- Summary
- Routing
- Convention-Based Routing
- Attribute-Based Routing
- Working on an Example of Attribute-Based Routing
- Route Attribute at the Controller Level
- Token Replacement in Route Templates
- Activity: Combining Route Templates that Begin with /
- Passing Routing Values in HTTP Action Verbs in the Controller
- Activity: Defining Two Actions with the Same Name with Different Verbs
- Route Constraints
- Activity: Creating an Attribute that Implements IActionConstraintFactory
- Summary
- Rest Buy
- Designing Rest Buy
- Features and Stories
- Layout and Pages
- Main Page
- Product Detail
- Checkout
- Checkout Success
- Previous Orders
- Defining our Domain and Model
- Creating a RestBuy Project
- Activity: Preparing Features and Stories for a Website
- Activity: Preparing Wireframe Diagrams for a Website
- Activity: Designing a Domain Model for a Website
- Creating the Entities
- Create EF Context and Migrations
- Create migrations
- Activity: Adding a Supplier Entity that Denotes the Supplier of a Product
- Summary
- Adding Features Testing and Deployment
- Adding the Registration Feature
- Sign In and Sign Out Mechanism
- Creating the Application Layer
- Performing Implementations in the Infrastructure Project
- Defining our ViewModel for Registration
- Defining our Controllers
- Creating the Post-Registration Landing Page
- Creating a Query for the Registration Service
- Validating the Registration
- Creating a Unit Test
- Writing a Unit Test
- Running the Unit Test
- Activity: Writing a Unit Test for Deletion
- Upgrading Our Project to Bootstrap 4
- Activity: Adding a EULA Agreement
- Deploying RestBuy to Azure
- Signing up to Microsoft Azure
- Prerequisites to Azure Deployment
- Deploying Rest Buy to Azure
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時(shí)間:2021-07-23 17:10:17