Pro ASP.NET Core MVC 第六版 pdf

所需积分/C币:49 2017-03-02 10:43:50 30.48MB PDF
0
收藏 收藏
举报

.net 开源了,跨平台了!aps.net core mvc 第六版,
Pro asP Net Core mvc: sixth edition Adam freeman ISBN-13(pbk:978-1-484203989 ISBN-13( electronic:978-1-4842-0397-2 DOI10.1007/978-1-4842-0397-2 Library of congress Control Number: 2016953186 Copyright o 2016 by Adam Freeman This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are notidentified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein Managing Director: Welmoed Spahr Lead Editor: Gwenan Spearing Technical reviewer: Fabio Claudio ferracchiati Editorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black, Louise Corrigan, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal, James Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan Spearin Coordinating Editor: Mark Powers Copy Editor: Kim Wimpsett Compositor: SPi Global Indexer: SPi global Artist: SPi Global Distributed to the book trade worldwide by Springer Science+ Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505, e-mail orders-nyospringer sbmcomorvisitwww.springeronline.com.ApressMedia,LlcisaCaliforniaLlcandthesolemember (owner )is Springer Science Business Media Finance Inc(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslationspleasee-mailrightsqapress.comorvisitwww.apress.com Apress and friends of ed books may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles. For more information, reference our Special BulksAles-ebookLicensingwebpageatwww.apress.com/bulk-sales Any source code or other supplementary materials referenced by the author in this text are available to readersatwww.apress.com/9781484203989.Fordetailedinformationabouthowtolocateyourbookssource codegotowww.apress.com/source-code/.ReaderscanalsoaccesssourcecodeatSpringerlinkinthe Supplementary Material section for each chapter. Printed on acid-free paper Dedicated to my lovely wife, Jacqui Griffyth(and also to Peanut) Contents at a glance About the author mm xxvii About the technical reviewer xxix Part s: Introducing ASPNET Core MVC,,…,,,,…,,,,…1 Chapter 1: ASP NET Core MVc in Context. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■国■■ 3 Chapter 2: Your First MVC Application ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■国■■■■■ Chapter 3: The MVC Pattern, projects, and conventions 53 Chapter 4: Essential C# Features.m m m mmmmmamma aam 65 Chapter 5: Working with Razor amman n: 101 Chapter 6: Working with Visual Studio ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■口■■■■■口■■■■■口■■■ 123 Chapter 7: Unit Testing MVC Applications,…,,…m,,…,,,159 Chapter8: SportsStore: A Real Application,,,…,,,,m,…,…,,191 Chapter 9: Sportsstore: Navigation ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■口■■■■■■■■■■■■■■■■■口■■■■■■ 235 Chapter 10: Sports Store: completing the cart aman a269 Chapter 11: Sports Store: Administration ■■■■■■■■■■■■■■■■■■國■■■■■■■■■■■國■■■■■■■■■■■■■■■■■■■■口量■■■ 291 ■ Chapter12: SportsStore: Security and Deployment,,,,,…,,…319 Chapter 13: Working with visual Studio Code 343 Part le aspnet core mvc in detail 371 Chapter 14: Configuring Applications mmmmmmmm naaman 373 Chapter 15: URL Routing.ama ammmmaamaammammnmammnan 425 Chapter 16: Advanced Routing Features 465 CONTENTS AT A GLANCE Chapter 17: Controllers and Actions.RRRBRBRRRRB III 503 Chapter18: Dependency Injecti0n,,,,,…,,,,…,,,…,,,……547 Chapter 19: Filters.amm mnamammmammmnaammnamm 581 Chapter 20: APl Controllers man 621 Chapter 21: Views ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■国■■■■■■ 653 Chapter 22: View Components .a mmmamamammm 687 ■ Chapter23: Understanding Tag Helpers,,,…,,,,…719 Chapter 24: Using the Form Tag Helpers 753 Chapter 25: Using the other Built-in Tag Helpers a ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 779 Chapter 26: Model Binding a mm m BBB R RBE IRa Ra REI Ra InI. 805 Chapter 27: Model Validation 843 Chapter 28: Getting Started with Identit ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 877 Chapter29: Applying AsPNeT Core Identity,…,…,,,,…,,,919 Chapter 30: Advanced ASP NET Core Identity . ar 949 Chapter 31: Model conventions and Action Constraints HR HIIIRIIIRRRIIn 983 Index ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■a国■■■a■■■ 1013 Contents About the author About the technical reviewer xxix Part Introducing ASP.NeT Core MVC emma Chapter 1: ASP NET Core MVc in Context. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■国■■■■ 3 Understanding the History of ASP. NeT Core MVc 3 ASPNET Web forms The original MVC Framework Understanding ASP.NET Core 5 Key benefits of ASP. NEt Core MVC………… 6 What do i need to know? What is the structure of this book? 88 Part 1: Introducing asp. net core Mvc Part2:ASPNETCoreMvcinDetal.9 What's new in this edition? Where Can I Get the Example Code? 999 Summary Chapter 2: Your First MVC Application amm mmm mm mmmmimmaaaa 11 Installing Visual Studio Creating a New ASP NeT Core MVC Project 13 Adding the Controller.......,,……,… Understanding Routes....…….19 CONTENTS Rendering Web Pages.…… .20 Creating and rendering a view Adding Dynamic Output 23 Creating a Simple Data-Entry application.emmnnmemtnnnmannnnin nn 25 Setting the scene Designing a data model 26 Creating a Second Action and a Strongly Typed view.…...………27 Linking Action Methods 28 Building the Form Receiving Form Data.......………31 Displaying the Responses Adding validation…. 38 Styling the content,…. Summary .51 Chapter 3: The Mvc Pattern, Projects, and conventions ■■■■■國■■■■■aaa■aaa■ 53 The history of Mvc....………153 Understanding the Mvc Pattern 53 Understanding Models... 54 Understanding controllers ...................................................................................................54 Understanding views...................................55 The asP.neT Implementation of Mvc Comparing Mvc to other Patterns 55 Understanding the smart Ul Pattern Understanding the Model-view Architecture Understanding Classic Three-Tier Architectures.............................57 Understanding Variations on MVC Understanding aSP.NeT Core MVC Projects 59 Creating the project...…………,59 Understanding MVC Conventions Summary 64 V11 Chapter 4: Essential C# Features. EBBBBR ERBBRBRIIRRIIRRBERREREBR IRRRRIBR IEaIIRRRILIan. 65 Preparing the Example project 65 Enabling asp. net core Mvc. ..................................................................................67 Creating the MVC Application Components ,68 Using the Null Conditional Operator 70 Chaining the Null Conditional operator. Combining the conditional and coalescing0 perators……,,… 72 Using Automatically Implemented Properties Using Auto-Implemented Property Initializers Creating Read-Only automatically Implemented Properties 75 Using String Interpolation 6 Using object and collection Initializers 77 Using an Index Initializer 79 Using EXtension Methods 80 Applying EXtension Methods to an Interface Creating Filtering Extension Methods 83 Using Lambda expressions .5 Defining Functions….,,,…, Using Lambda Expression Methods and properties. Using Type Inference and anonymous Types Using Anonymous Iypes… Using Asynchronous Methods.........,..,,…,………94 Working with Tasks Directly.. 日日日自日面日日自日日面日自日面日日自日日日面日自日日日自日日面日自日日日自日日自日面日自日自日日自日自日面日自日自日 Applying the async and await Keywords 96 Getting Names 97 Summary 99 IX CONTENTS Chapter 5: Working with Razor u101 Preparing the Example Project 102 Defining the model …103 Creating the controller Creating the view 104 Working with the Model object 105 Using view Imports 107 Working with Layouts…… 109 Creating the Layout 109 Applying a Layout Using a view Start File....………………112 Using Razor Expressions…… 114 Inserting Data Values Setting Attribute Values 117 Using Conditional Statements 118 Enumerating Arrays and collections.................120 Summary… 122 Chapter 6: Working with visual Studio.ammammmammammmanmnmnamammmmna 123 Preparing the Example Project 123 Creating the Model…… 124 Creating the Controller and view...,………………126 Managing Software Packagesmmmmmmatnnatonnnm.... 128 Understanding NuGet...………128 Understanding Bower 130 Understanding Iterative Development 134 Making Changes to Razor views 134 Making Changes to C# Classes 136 Using Browser Link… …144

...展开详情
试读 127P Pro ASP.NET Core MVC 第六版 pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
davyli 这本书还可以的
2020-07-21
回复
好男人不解释 还可以 读了一半了
2019-01-09
回复
canyanol 好东西,好好学习,天天向上。文件里面可复制。很方便。
2018-10-18
回复
LBLyndon 英文版,但讲的很仔细,谢谢分享。
2018-08-27
回复
kzxhao 好东西,好好学习,天天向上。文件里面可复制。很方便。
2018-07-20
回复
sjzcwhy 全英文的,不是很清晰,一般嘛
2018-05-17
回复
xepher2008 英文的,看的吃力
2018-03-23
回复
txswqs_wei 英文的,看的吃力
2018-03-02
回复
Nanrenld 全英文的,不是很清晰,一般嘛
2017-10-13
回复
qz2914650 全英文的。。。。
2017-10-08
回复
上传资源赚积分or赚钱
    最新推荐
    Pro ASP.NET Core MVC 第六版 pdf 49积分/C币 立即下载
    1/127
    Pro ASP.NET Core MVC 第六版 pdf第1页
    Pro ASP.NET Core MVC 第六版 pdf第2页
    Pro ASP.NET Core MVC 第六版 pdf第3页
    Pro ASP.NET Core MVC 第六版 pdf第4页
    Pro ASP.NET Core MVC 第六版 pdf第5页
    Pro ASP.NET Core MVC 第六版 pdf第6页
    Pro ASP.NET Core MVC 第六版 pdf第7页
    Pro ASP.NET Core MVC 第六版 pdf第8页
    Pro ASP.NET Core MVC 第六版 pdf第9页
    Pro ASP.NET Core MVC 第六版 pdf第10页
    Pro ASP.NET Core MVC 第六版 pdf第11页
    Pro ASP.NET Core MVC 第六版 pdf第12页
    Pro ASP.NET Core MVC 第六版 pdf第13页
    Pro ASP.NET Core MVC 第六版 pdf第14页
    Pro ASP.NET Core MVC 第六版 pdf第15页
    Pro ASP.NET Core MVC 第六版 pdf第16页
    Pro ASP.NET Core MVC 第六版 pdf第17页
    Pro ASP.NET Core MVC 第六版 pdf第18页
    Pro ASP.NET Core MVC 第六版 pdf第19页
    Pro ASP.NET Core MVC 第六版 pdf第20页

    试读结束, 可继续阅读

    49积分/C币 立即下载 >