Code-First Development with Entity Framework

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 20. März 2015
  • |
  • 174 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78439-073-0 (ISBN)
Entity Framework Code-First enables developers to read and write data in a relational database system using C# or VB.NET. It is Microsoft's answer to demand for an ORM from .NET developers.This book will help you acquire the necessary skills to program your applications using Entity Framework. You will start with database configuration and learn how to write classes that define the database structure. You will see how LINQ can be used with Entity Framework to give you access to stored data. You will then learn how to use Entity Framework to persist information in a Relational Database Management System. You will also see how you can benefit from writing ORM-based .NET code. Finally, you will learn how Entity Framework can help you to solve database deployment problems using migrations.
  • Englisch
  • Olton Birmingham
978-1-78439-073-0 (9781784390730)
1784390739 (1784390739)
weitere Ausgaben werden ermittelt
Sergey Barskiy is an architect with Tyler Technologies. He lives in Atlanta, GA. He has been developing software for almost 20 years. Sergey is a Microsoft MVP. He holds these Microsoft certifications: MCPD, MCTS, MCSD for .NET, MCAD for .NET, MCDBA, and MCP. He has been working with Microsoft Technologies for over 15 years. He is a frequent speaker at various regional and national conferences, such as VS Live, DevLink, CodeStock, and Atlanta Code Camp, as well as local user groups. He is one of the organizers of Atlanta Code Camp. He authored articles for Code Magazine. Sergey Barskiy has been using Entity Framework since it was first released to the public. He has deployed a number of projects to production that used Entity Framework over the years. He has used the Code-First approach on a few different projects as well. Sergey has produced an online video training course for this technology. He has spoken on Entity Framework Code-First at a number of national and regional conferences and events. You can tweet to him at @SergeyBarskiy or e-mail him at
  • Code-First Development with Entity Framework
  • Table of Contents
  • Code-First Development with Entity Framework
  • Credits
  • About the Author
  • About the Reviewers
  • Support files, eBooks, discount offers, and more
  • Why subscribe?
  • Free access for Packt account holders
  • Preface
  • What this book covers
  • What you need for this book
  • Who this book is for
  • Conventions
  • Reader feedback
  • Customer support
  • Downloading the example code
  • Errata
  • Piracy
  • Questions
  • 1. Introducing Entity Framework
  • What is ORM?
  • A brief history of Entity Framework
  • The capabilities of Entity Framework
  • The Entity Framework architecture
  • Self-test questions
  • Summary
  • 2. Your First Entity Framework Application
  • Creating a new project that uses Entity Framework
  • Creating a new database based on .NET classes
  • Saving a new record to the database
  • Querying data in a database
  • Updating a record
  • Deleting a row from the database
  • Introduction to schema changes
  • Self-test questions
  • Summary
  • 3. Defining the Database Structure
  • Creating table structures
  • Mapping .NET types to SQL types
  • Configuring primitive properties
  • Handling nullable properties
  • Defining relationships
  • The One-to-Many relationship
  • The Many-to-Many relationship
  • The One-to-One relationship
  • Self-test questions
  • Summary
  • 4. Querying, Inserting, Updating, and Deleting Data
  • The basics of LINQ
  • Filtering data in queries
  • Sorting data in queries
  • Exploring LINQ functions
  • Element operations
  • Quantifiers
  • Working with related entities
  • Filtering based on related data
  • Lazy and eager loading
  • Inserting data into the database
  • Updating data in the database
  • Deleting data from the database
  • Working with in-memory data
  • Self-test questions
  • Summary
  • 5. Advanced Modeling and Querying Techniques
  • Advanced modeling techniques
  • Complex types
  • Using an explicit table and column mappings
  • Adding supporting columns
  • Enumerations
  • Using multiple tables for a single entity
  • Advanced querying techniques
  • Projections
  • Aggregations and grouping
  • Advanced query construction
  • Paging data with windowing functions
  • Using joins
  • Groupings and left outer joins
  • Set operations
  • Self-test questions
  • Summary
  • 6. Working with Views, Stored Procedures, the Asynchronous API, and Concurrency
  • Working with views
  • Working with stored procedures
  • Create, update, and delete entities with stored procedures
  • The asynchronous API
  • Handling concurrency
  • Self-test questions
  • Summary
  • 7. Database Migrations and Additional Features
  • Enabling and running migrations
  • Using the migrations API
  • Applying migrations
  • Applying migrations via a script
  • Applying migrations via migrate.exe
  • Applying migrations via an initializer
  • Adding migrations to an existing database
  • Additional Entity Framework features
  • Custom conventions
  • Geospatial data
  • Dependency injection and logging
  • Startup performance
  • Multiple contexts per database
  • Self-test questions
  • Summary
  • A. Answers to Self-test Questions
  • Chapter 1: Introducing Entity Framework
  • Chapter 2: Your First Entity Framework Application
  • Chapter 3: Defining the Database Structure
  • Chapter 4: Querying, Inserting, Updating, and Deleting Data
  • Chapter 5: Advanced Modeling and Querying Techniques
  • Chapter 6: Working with Views, Stored Procedures, the Asynchronous API, and Concurrency
  • Chapter 7: Database Migrations and Additional Features
  • Index

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


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)

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

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