Entity Framework Tutorial - Second Edition

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 24. August 2015
  • |
  • 274 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78355-002-9 (ISBN)
 
A comprehensive guide to the Entity Framework with insight into its latest features and optimizations for responsive data access in your projectsAbout This BookCreate Entity data models from your database and use them in your applicationsLearn about the Entity Client data provider and write statements in Entity SQL to perform CRUD operationsExplore ADO.NET Data Services and how they work with the Entity FrameworkWho This Book Is ForIf you are a C# developer who wants to learn a new way of querying data and utilizing it in applications efficiently for data binding or other operations, then this book is for you. Basic knowledge of ADO.NET is assumed.What You Will LearnExplore the features of the ADO.NET Entity FrameworkUnderstand the concepts of entities and their relationshipsCreate an Entity Data Model using the ADO.NET Entity Data Model Designer and the EdmGen toolExtend existing Entity Types to create your own Entity TypesWrite programs against the Entity Data Model to perform CRUD operationsDiscover ADO.NET Data Services and learn how they can be used with the Entity FrameworkFamiliarize yourself with WCF Data Services (formerly ADO.NET Data Services)Apply Code First, Model First and Database First approachesIn DetailThe ADO.NET Entity Framework from Microsoft is a new ADO.NET development framework that provides a level of abstraction for data access strategies and solves the impedance mismatch issues that exist between different data models.This book explores Microsoft's Entity Framework and explains how it can used to build enterprise level applications. It will also teach you how you can work with RESTful Services and Google's Protocol Buffers with Entity Framework and WCF. You will explore how to use Entity Framework with ASP.NET Web API and also how to consume the data exposed by Entity Framework from client applications of varying types, i.e., ASP.NET MVC, WPF and Silverlight. You will familiarize yourself with the new features and improvements introduced in Entity Framework including enhanced POCO support, template-based code generation, tooling consolidation and connection resiliency. By the end of the book, you will be able to successfully extend the new functionalities of Entity framework into your project.Style and approachThis book is a step-by-step tutorial providing hands-on code examples with detailed explanations. The book aims to explain the concepts of the Entity Framework and illustrate how you can use these in applications with a tutorial based approach.
  • Englisch
  • Olton Birmingham
  • |
  • Großbritannien
  • Überarbeitete Ausgabe
978-1-78355-002-9 (9781783550029)
1783550023 (1783550023)
weitere Ausgaben werden ermittelt
Joydip Kanjilal has won a Microsoft Most Valuable Professional (MVP) award in ASP.NET. He is a speaker and author of several books and articles. He has over 18 years of industry experience in IT, with more than 12 years in Microsoft .NET and its related technologies. Joydip is currently working as a Principal Architect at SenecaGlobal IT Services Private Limited, Hyderabad. He has been selected as an MSDN Featured Developer of the Fortnight (MSDN) a number of times and has also been a Community Credit Winner at www.community-credit.com several times. He has authored the following books:
* ASP.NET Web API: Build RESTful Web Applications and Services on the .NET Framework by Packt Publishing
* Visual Studio 2010 and .NET 4 Six-in-One by Wrox Publishers
* ASP.NET 4.0 Programming by Mc-Graw Hill Publishing
* Entity Framework Tutorial by Packt Publishing
* Pro Sync Framework by APRESS
* Sams Teach Yourself ASP.NET Ajax in 24 Hours by Sams Publishing
* ASP.NET Data Presentation Controls Essentials by Packt Publishing
He has authored more than 250 articles for some of the most reputable sites, such as www.msdn.microsoft.com, www.code-magazine.com, www.asptoday.com, www.devx.com, www.ddj.com, www.aspalliance.com, www.aspnetpro.com, www.sql-server-performance.com, www.sswug.com, and so on. A lot of these articles have been selected at www.asp.net, Microsoft's official site on ASP.NET.
He has years of experience in designing and architecting solutions for various domains. His technical strengths include C, C++, VC++, Java, C#, Microsoft .NET, AJAX, WCF, web-based APIs, REST, SOA, design patterns, SQL Server, operating systems, and computer architecture.
He can be contacted at:
* http://aspadvice.com/blogs/joydip
* http://www.infoworld.com/blog/microsoft-coder
* Website: www.joydipkanjilal.com
* Twitter: https://twitter.com/joydipkanjilal
* Facebook: https://www.facebook.com/joydipkanjilal
* LinkedIn: http://in.linkedin.com/in/joydipkanjilal
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Introducing the ADO.NET Entity Framework
  • What you should know
  • Looking back
  • What is the ADO.NET Entity Framework?
  • Is Entity Framework just another ORM?
  • A comparative analysis of Entity Framework and other ORM tools
  • LINQ to SQL and .dbml files
  • Entity Framework architectural components
  • The Entity Data Model
  • How is the EDM represented?
  • The Object Model (O-Space)
  • LINQ to Entities
  • Entity Client
  • Entity SQL
  • Avoiding complex joins
  • The Object Services Layer
  • Features and benefits at a glance
  • System requirements
  • Support for persistence ignorance
  • Support for T4 code generation
  • Support for lazy loading
  • Support for POCO change tracking
  • Better n-tier support with self-tracking entities
  • Support for code-first, model-first, and database-first approaches
  • Support for built-in functions and UDF support
  • Support for model-defined functions
  • Enum support
  • Spatial data types support
  • Other enhancements
  • Performance improvements in Entity Framework 6
  • New features in Entity Framework 7
  • Summary
  • Chapter 2: Getting Started
  • Designing the UserAuthentication database
  • Creating the EDM
  • Creating the Entity Data Model using the ADO.NET Entity Data Model Designer
  • Creating Entity Data Model using the EdmGen tool
  • The DataSource controls
  • The ObjectDataSource control
  • The SqlDataSource control
  • The SiteMapDataSource control
  • The XMLDataSource control
  • The LinqDataSource control
  • The EntityDataSource control
  • Implementing our first application using the Entity Framework
  • Summary
  • Chapter 3: Entities, Relationships, and the Entity Data Model
  • Entities, entity types, and relationships in the EDM
  • What is an entity?
  • Defining entity sets in the EDM
  • Extending the existing entity types to create derived entity types
  • Association sets, associations, containment, and multiplicity
  • What are entity containers?
  • Exploring the Security EDM
  • The Mapping Details window
  • The Entity Model browser
  • The EDM layers
  • The CSDL schema
  • The SSDL schema
  • The MSL schema
  • Entity classes
  • Summary
  • Chapter 4: Working with Stored Procedures in the Entity Data Model
  • Creating a database using model-first development
  • Creating stored procedures
  • Mapping stored procedures to functions in the EDM
  • Mapping the create, update, and delete functions to entities in the EDM
  • Mapping stored procedures with no entity set
  • Executing stored procedures using the EDM
  • Mapping stored procedures that return custom entity types
  • Summary
  • Chapter 5: Working with Entity Client and Entity SQL
  • An overview of the E-SQL language
  • From T-SQL to E-SQL
  • Why E-SQL when I already have LINQ to Entities?
  • Features of E-SQL
  • Operators in E-SQL
  • Arithmetic operators
  • Comparison operators
  • Logical operators
  • Reference operators
  • Type operators
  • Set operators
  • Operator precedence
  • Expressions in E-SQL
  • Query expressions in E-SQL
  • Identifiers, variables, parameters, and types in E-SQL
  • Row
  • Collections
  • Reference
  • Canonical functions in E-SQL
  • Mathematical functions
  • Aggregate functions
  • String functions
  • Bitwise functions
  • The date and time functions
  • Data paging using E-SQL
  • Working with the ADO.NET Entity Client
  • Let's get into action
  • Building the connection string
  • Creating an entity connection
  • Opening the connection
  • Executing queries using the entity command
  • Closing the connection
  • Other operations with E-SQL
  • Inserting a record using E-SQL
  • Inserting a record with a foreign key constraint
  • Retrieving native SQL from EntityCommand
  • Transaction management in E-SQL
  • Deferred, eager, and lazy loading
  • Summary
  • Chapter 6: Working with LINQ to Entities
  • Introducing LINQ
  • Why LINQ?
  • Understanding the LINQ architecture
  • LINQ to XML
  • LINQ to SQL
  • LINQ to Objects
  • LINQ to Entities
  • Querying data using LINQ to Entities
  • LINQ to Entities and Entity Framework
  • Differences between LINQ to Entities and LINQ to SQL
  • Parallel LINQ
  • Operators in LINQ
  • Aggregation
  • Projections
  • Ordering
  • Quantifiers
  • Restriction
  • Conversion
  • Element
  • Set
  • Querying data using LINQ
  • Expressions in LINQ to Entities
  • Constant expressions
  • Comparison expressions
  • Initialization expressions
  • Null comparisons
  • Navigation properties
  • Immediate and deferred query execution
  • Retrieving entity data from the Security database
  • Summary
  • Chapter 7: Working with the Object Services Layer
  • What are Object Services?
  • Features at a glance
  • The SecurityDbEntity's DbContext class
  • Querying data as in-memory objects
  • Using Entity Framework 7
  • Performing CRUD operations on objects
  • Attaching and detaching objects to and from ObjectContext
  • Serializing and deserializing entity instances
  • Change tracking and identity resolution using ObjectContext
  • Understanding the code-first, model-first, and database-first approaches to domain design
  • Using the code-first approach
  • Using the model-first approach
  • Using the database-first approach
  • Inheritance in Entity Framework
  • Table-per-Hierarchy
  • Table-per-Type
  • Table-per-Concrete Type
  • Implementing complex types in the EDM
  • State management, identity management, and relationship management
  • Reading objects from the Security database
  • Inserting objects from the Security database
  • Editing objects from the Security database
  • Deleting objects from the Security database
  • Summary
  • Chapter 8: Working with WCF Data Services
  • Introducing WCF Data Services
  • How do WCF Data Services and Web Services differ?
  • What is Representational State Transfer (REST)?
  • Why use WCF Data Services?
  • The features at a glance
  • Exposing data as a service using WCF Data Services
  • Why do we need REST?
  • Resources in REST-based architecture
  • The REST architectural constraints
  • The client-server model
  • Stateless
  • Cacheable
  • Code on demand
  • The uniform interface
  • Resource management
  • REST attributes
  • WebServiceHost
  • WebHttpBinding
  • WebHttpBehavior
  • WebOperationContext
  • WebMessageFormat
  • The WebGet attribute
  • The WebInvoke attribute
  • UriTemplate
  • REST-based Web Services
  • What is the OData Protocol?
  • Working with WCF Data Services and Entity Framework
  • Working with OData Services using WCF and ASP.NET MVC Framework
  • Working with Protobuf WCF Services
  • Protocol Buffers
  • Creating Protobuf-net objects
  • Integrating Protobuf.NET with Visual Studio
  • Implementing the WCF Service
  • Specifying binding information
  • Summary
  • Appendix: Advanced Concepts
  • REST and REST-based service frameworks
  • Ruby on Rails
  • Restlet
  • Django REST
  • The Flickr REST API
  • The Google API
  • Yahoo Social REST APIs
  • Exploring OData
  • HTTP methods, request, and response codes
  • Abbreviations
  • New features in Entity Framework 7
  • Suggested reading
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

35,85 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok