Beginning ASP.NET 4.5



Similar documents
70-487: Developing Windows Azure and Web Services

Developing Windows Azure and Web Services

MS 20487A Developing Windows Azure and Web Services

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Programming in C# with Microsoft Visual Studio 2010

MS 10978A Introduction to Azure for Developers

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Developing ASP.NET MVC 4 Web Applications MOC 20486

This module provides an overview of service and cloud technologies using the Microsoft.NET Framework and the Windows Azure cloud.

SQL Server Integration Services Design Patterns

Course 10978A Introduction to Azure for Developers

Developing ASP.NET MVC 4 Web Applications

SAV2013: The Great SharePoint 2013 App Venture

The Great Office 365 Adventure

Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5 (VB)

GOA365: The Great Office 365 Adventure

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

Software Development Interactief Centrum voor gerichte Training en Studie Edisonweg 14c, 1821 BN Alkmaar T:

AppFabric. Pro Windows Server. Stephen Kaufman. Danny Garber. Apress. INFORMATIONSBIBLIOTHbK TECHNISCHE. U N! V En SIT AT S R!

MOC DEVELOPING WINDOWS AZURE AND WEB SERVICES

ASP.NET Using C# (VS2012)


Catálogo de cursos plataforma elearning Microsoft Imagine Academy: Microsoft SQL Server y Visual Studio

SQL Server Integration Services. Design Patterns. Andy Leonard. Matt Masson Tim Mitchell. Jessica M. Moss. Michelle Ufford

Pro SQL Server Reporting Services. Third Edition. mm m. Brian McDonald. Shawn McGehee. Rodney Landrum. Apress*

Developing Windows Azure and Web Services

Application Development

10978A: Introduction to Azure for Developers

How To Train Aspnet

Introduction to Azure for Developers

Getting Started with Telerik Data Access. Contents

Practical ASRNET. Web API. Badrinarayanan Lakshmiraghavan. Apress*

Please contact Cyber and Technology Training at for registration and pricing information.

New Features in Oracle Application Express 4.1. Oracle Application Express Websheets. Oracle Database Cloud Service

Microsoft Introduction to Azure for Developers

Microsoft SQL Server Review

Expanded contents. Section 1. Chapter 2. The essence off ASP.NET web programming. An introduction to ASP.NET web programming

Programming Fundamentals of Web Applications Course 10958A; 5 Days

Skillsoft Course Directory

Getting started with your AppDev Microsoft Development Library

2311A: Advanced Web Application Development using Microsoft ASP.NET Course 2311A Three days Instructor-led

Skillsoft Course Directory

Developing Microsoft Azure Solutions 20532B; 5 Days, Instructor-led

Microsoft Dynamics CRM2015 Fast Track for developers

Implementing and Administering an Enterprise SharePoint Environment

CHAPTER 1: INTRODUCTION TO SHAREPOINT

Development and Management

Expert Oracle Application. Express Security. Scott Spendolini. Apress"

Expert Oracle Enterprise

Microsoft Training and Certification Guide. Current as of December 31, 2013

CATALOG OF CLASSES IT and Technical Courses

MCTS:.NET Framework 4, Web Applications

SaaS-Based Employee Benefits Enrollment System

1. Digital Literacy - Computer Security and Privacy 2. Partners in Learning: Organize and Manage the Use of ICT in Your Classroom 3.

Grupo Lanka s Pivotal Development tools are integrated by the follow individual products:

Key Benefits of Microsoft Visual Studio 2008

Learning Web App Development

Beginning SQL Server Administration. Apress. Rob Walters Grant Fritchey

ASP.NET MVC. in Action JEFFREY PALERMO JIMMY BOGARD BEN SCHEIRMAN MANNING. (74 w. long.) WITH MVCCONTRIB, N HIBERNATE, AND MORE.

Windows Azure Data Services (basics) 55093A; 3 Days

Pro ASP.NET 4 CMS. Using the JET 4 Framework. Advanced Techniques for C# Developers. Apress. Alan Harris

Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions OVERVIEW

Office and SharePoint

Getting Started With Your LearnDevNow Learning

Advanced Web Application Development using Microsoft ASP.NET

ADS2013: App Development with SharePoint 2013

Framework as a master tool in modern web development

PG DAC. Syllabus. Content. Eligibility Criteria

The Data Access Handbook

Updating Your Microsoft SQL Server 2008 BI Skills to SQL Server 2008 R2

How To Write A Web Framework In Java

Developing Microsoft SharePoint Server 2013 Advanced Solutions

maximizing IT productivity

Cloud Computing with Windows Azure using your Preferred Technology

Managing Data in Motion

Course 10337A: Updating Your Microsoft SQL Server 2008 BI Skills to SQL Server 2008 R2

White Paper On. Single Page Application. Presented by: Yatin Patel

Deploy. Friction-free self-service BI solutions for everyone Scalable analytics on a modern architecture

Noramsoft Inc. Noramsoft Inc. SPT2O1O - Course Description. Developing Solutions with SharePoint Server 2010 SPT2010. Noramsoft Inc. Noramsoft Inc.

InnerWorkings Catalog

SharePoint 2010/2013 Course

OVERVIEW OF MICROSOFT AZURE

Expert PHP and MySQL. Application Desscpi and Development. Apress" Marc Rochkind

AppDev OnDemand Microsoft Development Learning Library

CLOUD COMPUTING & WINDOWS AZURE

DotNet Web Developer Training Program

Object-Oriented Systems Analysis and Design

70-243: Administering and Deploying System Center 2012 Configuration Manager : Monitoring and Operating a Private Cloud with System Center 2012

AppDev OnDemand Cloud Computing Learning Library

EXAM PRO:Design & Develop Windows Apps Using MS.NET Frmwk 4. Buy Full Product.

Skillsoft Course Directory

Describe how to utilize the Publishing API to access publishing settings and content.

This Record of activity confirms that Jonathan Scrase has completed the following courses within the Microsoft Virtual Academy:

Transcription:

Beginning ASP.NET 4.5 Databases i nwo t'loroon Sandeep Chanda Damien Foggon Apress-

Contents About the Author About the Technical Reviewer Acknowledgments Introduction xv xvii xix xxi Chapter 1: ASP.NET 4.5 Data Sources 1 The New Data Access Paradigms 2 Data Sources in ASP.NET 4.5 5 AD0.NET Data Sources 5 NoSQL 6 Web Services 6 WCF Data Services 6 Syndication Services 7 Azure Storage 7 HTML 5 Local Storage 7 Introduction to AD0.NET in.net Framework 4.5 8 What Is New inad0.net? 8 Entity Framework 5.0 8 SqICIient Data Provider 8 AD0.NET and LINQ 9 Data Providers 9 Asynchronous Data Access 10 Async Programming Model in.net Framework 4.5 11 vii

Public CONTENTS Developing Your First Example 13 Try It Out: First Data-Driven Page in ASP.NET 4.5 13 How It Works 25 Summary 25 Chapter 2: The Future of Relational Databases 27 The Evolution of Relational Databases 28 The Drawbacks of Relational Databases 28 How Microsoft SQL Server Is Overcoming the Limitations 28 Introducing Microsoft SQL Server 2012 29 What Is New? 29 Spatial Data 32 Spatial Data and SQL Server 32 Database Engine and T-SQL Enhancements 37 Support for Pagination 37 Sequence 38 Execute with Result Sets 40 FileTable 40 Data Visualization 40 Power View and Power Pivot 41 Self-Service Alerting 41 SQL Server 2012 Cloud 43 Private Cloud 44 SQL Azure - Cloud 44 Summary 47 Chapter 3: Introducing Non-Relational Databases 49 Understanding NoSQL Databases 49 Overview 50 Key Benefits 50 Popular NoSQL Technologies 50 Document-Oriented Databases 51 viii

Programming with MongoDB 52 How to Set Up MongoDB 52 Using the MongoDB Client 54 Programming MongoDB Using C# 55 How Does MongoDB Work? 59 Summary 59 &fchapter 4: Accessing Data Using ADO.NET 61 ADO.NET Architecture 61 Reading and Modifying a Database Using ADO.NET Data Providers 62 DataSetvs. DataReader 63 Connecting to a Database 64 Commands for CRUD Operations 66 Manipulating Data with Stored Procedures 66 Asynchronous Data Streams 68 Provider Factories 68 Multiple Active Result Sets 70 DataSets, DataAdapters, and DataSource Controls 71 Data Type Mappings 73 Precision with Floating-Point Numbers 74 Secure Data Access 74 Permissions for Accessing an SQL Database 74 Encrypting Web Configuration 75 Preventing Exploits Using Injection 76 Exception Handling 77 Secure String for Processing Sensitive Information in Memory 77 Microsoft SQL Server 2012 Extended Protection 77 Summary 77 Chapter 5: Introducing Language-Integrated Query (LINQ) 79 Writing Queries Using LINQ 79 LINQ Data Sources 80 Building Queries Using LINQ 83 ix

Query Operators 84 Query Operator Classification 85 Query Operator Execution 85 LINQ forado.net Data Access 85 LINQ to SQL 86 Lazy Loading 90 LINQ to DataSet 91 LINQ to Entities 92 LINQ and Parallelism 92 AsParallel Extension 92 Querying WCF Data Services 93 Summary 98 Chapter 6: ADO.NET Entity Data Model 99 EDM Architecture 99 Conceptual Schema 100 Storage Schema 102 Mapping Schema 103 EDM Generator Tool 104 AD0.NET Metadata 107 EDM Types and Relationships 107 DataSpace Enumerator 108 Metadata Workspace 108 Canonical and Store Functions 112 Introduction to Entity SQL 112 Summary 113 Chapter 7: Designing Data Access Applications Using Entity Framework 115 Entity Framework Architecture 116 Generating Entity Models 116 Entity Associations 121 Query EDM with LINQ to Entities 121 X

Code Generation in Entity Framework Using Text Templates 123 DbContext Generator and POCO Classes 125 POCO Proxy 128 Eager Loading Entities 129 Complex Types 129 Complex Types and Stored Procedures 131 Enumeration Types 134 Entity Client Data Provider 134 Unit Testing Your Data Access Layer 134 Summary 136 Chapter 8: Entity Framework Data Access Paradigms 137 Model-First Approach 138 Code-First Approach 148 Database Initializer 150 Custom Mapping with Fluent API 152 Code-First Migrations 153 Reverse Engineering Code First from Database 153 Validation with Data Annotations 154 Summary 156 Chapter 9: Consuming Data Using WCF Data Services 157 Overview of REST Semantics 158 Introduction to WCF Data Services 158 The Open Data Protocol 158 Exposing Data as Service 161 WCF Data Service Providers 166 Exposing ASP.NET MVC WebAPI Services as OData Feeds 167 Consuming Data Services in a Client Application 171 Consuming OData Feeds using jquery Ajax 171 Consuming OData Feeds Using WCF Data Services Client Library 173 Summary 175 xi

Chapter 10: Data Binding in ASP.NET 4.5 177 Data Source Controls 177 LinqDataSource 178 EntityDataSource 180 Data-Bound Controls 187 DataList 188 DetailsView 189 Query Extender 191 Strongly Typed Data Controls 191 ItemType Attribute 191 HTML-Encoded Expression 192 Model Binding 192 Value Providers 193 Data-Binding inasp.net MVC 4 194 Razor View Engine 194 Unobtrusive JavaScript 197 Asynchronous Display with Ajax 199 Summary 200 Chapter 11: Building Extensible Data-Driven Web Applications Using Dynamic Data 201 Dynamic Data Layers 201 Dynamic Data Scaffolding 202 Customizing the Scaffolding Templates 207 Template Behaviors 211 How Dynamic Data Works 211 MetaModel 211 Routing 212 Dynamic Data in Existing Controls 213 Summary 213 xii

Chapter 12: Best Practices and Techniques in Building Data-Driven Websites 215 Data Access Layer Patterns 215 Isolating the Data Layer and Entity Models 216 Repository Pattern 218 Unit of Work 223 Techniques to Deal with Issues 228 Concurrency 228 Transactions 229 Debugging Issues 229 Summary 234 Chapter 13: Application Lifecycle Management 235 Architecting the Enterprise 236 Designing New Applications 236 Analyzing Existing Application Codebase 238 Enhance Your Productivity 239 Better Access to Files and Code 239 Accessing Data 240 Suspend and Resume 241 Code Reviews 242 Analyze and Profile Your Application 244 Testing and Debugging Your ASP.NET Application 244 Unit Testing 245 Historical Debugging with IntelliTrace 245 Build and Deployment 245 Team Build Definition Team Build Definition Triggers Team Build Process 246 246 247 Deploy Using Team Build 247 Deploying SQL Server Databases 248 Summary 249