Muutke küpsiste eelistusi

E-raamat: Creating ASP.NET Core Web Applications: Proven Approaches to Application Design and Development

  • Formaat: EPUB+DRM
  • Ilmumisaeg: 05-Mar-2021
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484268285
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 67,91 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 05-Mar-2021
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484268285
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Intermedate user level

Design and develop an ASP.NET Core web application using .NET Core 3.0. This book shows you how to publish a web application to a web server and connect the published web application to a production database.

Creating ASP.NET Core Web Applications starts by setting up the Visual Studio project where you will learn about Razor pages, Entities, and creating a data service. You will create models along with methods to use a query string and handle bad requests. Modifying data with Tag helpers is discussed as well as installation of Entity Framework, working with database migrations, and implementing a data access service. You will learn how to use layout pages and sections with Partial Views, _ViewImports, and _ViewStart files. You also will create custom middleware and log application events. You will be able to deploy the web application as well as connect it to a SQL Server database.


What You Will Learn
  • Work with models
  • Modify data
  • Work with EF Core and SQL Server
  • Work with Razor pages and Partial Views
  • Use separate scripts for production vs development
  • Trace client-side errors using Chrome Developer tools
  • Create cascading style sheets (CSS) with Sassy CSS (SCSS)
  • Explore middleware
  • Deploy your web application to IIS


Who This Book Is For

Software developers on the .NET stack who want to create ASP.NET Core web applications
About the Author ix
About the Technical Reviewer xi
Acknowledgments xiii
Introduction xv
Chapter 1 Creating and Setting Up Your Project
1(38)
Creating Your Web Application Project
1(4)
Using the .NET CLI
5(4)
Adding and Editing Razor Pages
9(10)
Looking at the Configuration
19(4)
Working with Entities
23(6)
Creating and Registering a Data Service
29(5)
Displaying Test Data on Your Web Page
34(5)
Chapter 2 Creating Models
39(40)
Building a Search Form
39(1)
Adding Font Awesome
39(1)
Adding the Search Form Code
40(3)
Implementing the Find Logic
43(3)
Using Model Binding and Tag Helpers
46(7)
Displaying Related Data
53(6)
Passing the Video ID Through to the Detail Page
59(4)
Working with Page Routes
63(5)
Populating Video Details
68(3)
Handling Bad Requests
71(8)
Chapter 3 Modifying Data
79(40)
Editing Existing Data and Using Tag Helpers
79(8)
Building the Edit Form
87(8)
Changing the Data Service
95(2)
Validate Edited Data and Display Validation Errors
97(5)
AddSingleton vs. AddScoped vs. AddTransient
102(1)
Implementing IValidatableObject
103(4)
Adding a New Video
107(2)
Modifying the Data Access Service
109(1)
Modifying the OnPost Method
110(1)
Working with TempData
111(4)
Changing the TempData Provider
115(4)
Chapter 4 EF Core and SQL Server
119(30)
Entity Framework Core
119(1)
Install Entity Framework
120(4)
Implement DbContext
124(1)
Specify Database Connection Strings
125(7)
Working with Database Migrations
132(10)
Implement a New Data Access Service
142(3)
Changing the Data Access Service Registration
145(4)
Chapter 5 Working with Razor Pages
149(34)
Using Sections in Your Razor Pages
149(2)
MetaTags and CSS
151(1)
Navigation
152(1)
@RenderBody
152(1)
Footer
152(1)
Scripts Applied Across All Pages
152(1)
@RenderSection
152(3)
What Are_Viewlmports and_ViewStart Files?
155(2)
Specifying a Different Layout Page
157(4)
Creating a Custom TagHelper
161(4)
Working with Partial Views
165(2)
Adding Video Properties and Updating the Database
167(3)
Adding Markup to the Partial View
170(6)
Working with ViewComponents
176(7)
Chapter 6 Adding Client-Side Logic
183(42)
Separate Production Scripts from Development Scripts
183(4)
Setting Up SCSS and Generating CSS
187(12)
SCSS Partial Files
199(2)
Using SCSS @mixin
201(3)
Using SCSS @extend
204(4)
Using SCSS Functions
208(4)
Working with Chrome Developer Tools
212(1)
Dragging Elements
213(2)
Adding and Modifying Styles
215(3)
Add a New Class
218(1)
Testing State Changes
219(2)
Throttling Network Speed
221(2)
Wrapping Up
223(2)
Chapter 7 Exploring Middleware
225(32)
What Is Middleware
225(2)
Handling Exceptions
227(1)
UseHsts
228(2)
UseHttpsRedirection
230(1)
UseStaticFiles
230(2)
UseRouting
232(1)
UseSession
232(1)
UseEndpoints with MapRazorPages
233(1)
Creating Custom Middleware
233(5)
Logging Information
238(6)
Only Logging What Is Necessary
244(3)
Applying a Specific LogLevel to Production
247(7)
A Quick Look at the Log Category
254(1)
Wrapping Up
255(2)
Chapter 8 Web Application Deployment
257(28)
Getting Your Site Ready for Deployment
257(8)
Deploying Your Web Application to IIS
265(6)
Configuring the SQL Server Database
271(12)
A Note About Connection Strings and Secrets
283(2)
Index 285
Dirk Strauss is a software developer from South Africa who has been writing code since 2003. He has extensive experience in SYSPRO, with C# and web development being his main focus. He studied at the Nelson Mandela University, where he wrote software on a part-time basis to gain a better understanding of the technology. He remains passionate about writing code and imparting what he learns with others.