C# edition
Improve Code recipes in C#
102 recipes in C# and SQL Server, each with the way it's often written and the improved version.
Part I: Data
Chapter 1 Data Access Without the Boilerplate
- 1.1 Open Late, Close Early
- 1.2 Parameterized Queries, Typed Properly
- 1.3 A Small Data Helper to Replace SqlHelper
- 1.4 Mapping Readers to Objects, and When to Use Dapper
- 1.5 Transactions That Commit or Roll Back
- 1.6 Bulk Loads with SqlBulkCopy and Table-Valued Parameters
- 1.7 Async Data Access All the Way Down
Chapter 2 SQL Server Recipes That Hold Up
Chapter 3 Caching That Doesn't Lie
Part II: Cross-Cutting Concerns
Chapter 4 Logging That Helps at 2 A.M.
Chapter 5 Exceptions and Error Handling
Chapter 6 Configuration and Secrets
Chapter 7 Security Essentials
Chapter 8 Validation You Can Trust
Part III: Integration
Chapter 9 E-mail and Notifications
Chapter 10 Files, Folders and FTP
Chapter 11 Excel, CSV and PDF Output
Chapter 12 XML and JSON
Chapter 13 Calling Web Services
Part IV: Applications
Chapter 14 Background Jobs and Scheduling
Chapter 15 Strings, Dates and Everyday Utilities
Chapter 16 From Web Forms to ASP.NET Core
Chapter 17 Case Study: CFATS Manager
- 17.1 Replacing String-Built Queries in SQLManager
- 17.2 From ObjectState to Results and Exceptions in the Usage Layer
- 17.3 One Transaction for a Multi-Table Insert Procedure
- 17.4 One Home for Session State Instead of 223 Copies
- 17.5 The Alert Manager as a Modern Worker Service
- 17.6 Alert E-mail with MailKit