,

Programming Entity Framework: Code First

Creating and Configuring Data Models From Your Classes

Specificaties
Paperback, 190 blz. | Engels
O'Reilly | 1e druk, 2012
ISBN13: 9781449312947
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2012 9781449312947
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

Take advantage of the Code First data modeling approach in ADO.NET Entity Framework, and learn how to build and configure a model based on existing classes in your business domain. With this concise book, you'll work hands-on with examples to learn how Code First can create an in-memory model and database by default, and how you can exert more control over the model through further configuration.

Code First provides an alternative to the database first and model first approaches to the Entity Data Model. Learn the benefits of defining your model with code, whether you're working with an existing database or building one from scratch. If you work with Visual Studio and understand database management basics, this book is for you.

- Learn exactly what Code First does-and does not-enable you to do
- Understand how property attributes, relationships, and database mappings are inferred from your classes by Code First
- Use Data Annotations and the Fluent API to configure the Code First data model
- Perform advanced techniques, such as controlling the database schema and overriding the default model caching

Specificaties

ISBN13:9781449312947
Taal:Engels
Bindwijze:paperback
Aantal pagina's:190
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:11-1-2012

Over Julia Lerman

Julia Lerman is the leading independent authority on the Entity Framework and has been using and teaching the technology since its inception two years ago. She is well known in the .NET community as a Microsoft MVP, ASPInsider and INETA Speaker. She is a prolific blogger, a frequent presenter at technical conferences around the world, including DevConnections and TechEd and she writes articles for many well-known technical publications. Julia lives in Vermont where she runs the Vermont.NET User Group, was a founding board member of the Vermont Software Developers Alliance, and is a member of the Champlain College Software Engineering Advisory Board.

Andere boeken door Julia Lerman

Over Rowan Miller

Rowan is based in Seattle, Washington and works as a Program Manager for the ADO.Net Entity Framework team at Microsoft. Prior to moving to the US he resided in the small state of Tasmania in Australia. Rowan speaks at technical conferences and blogs at http://romiller.com. Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.

Andere boeken door Rowan Miller

Inhoudsopgave

Preface

1. Welcome to Code First
-Modeling with EF Before Code First
-Inception of Code First
-Getting Code First to Developers in Between .NET Releases
-Writing the Code…First
-Managing Objects with DbContext
-Using the Data Layer and Domain Classes
-Getting from Classes to a Database
-Working with Configuration
-Creating or Pointing to a Database
-What Code First Does Not Support
-Learning from This Book

2. Your First Look at Code First
-Introducing EF to the Domain Classes
-Putting the Pieces Together in an Example
-Overriding Convention with Configurations
-Understanding How Model Changes Impact Database Initialization
-Configuring Code First with the Fluent API
-Summary

3. Using Conventions and Configurations for Property Attributes
-Working with Property Attributes in Code First
-Mapping Keys
-Configuring Database-Generated Properties
-Configuring TimeStamp/RowVersion Fields for Optimistic Concurrency
-Configuring Non-Timestamp Fields for Concurrency
-Mapping to Non-Unicode Database Types
-Affecting the Precision and Scale of Decimals
-Working with Complex Types in Code First
-Configuring Properties of Complex Types
-Summary

4. Using Convention and Configuration for Relationships
-Working with Multiplicity
-Working with Foreign Keys
-Working with Inverse Navigation Properties
-Working with Cascade Delete
-Exploring Many-to-Many Relationships
-Working with Relationships that Have Unidirectional Navigation
-Working with One-to-One Relationships
-Summary

5. Using Conventions and Configurations for Database Mappings
-Mapping Class Name to Database Table and Schema Name
-Mapping Property Names to Database Columns
-Allowing Multiple Entities to Map to a Single Table: aka Table Splitting
-Mapping a Single Entity Across Multiple Tables
-Controlling Which Types Get Mapped to the Database
-Understanding Property Mapping and Accessibility
-Preventing Properties from Being Included in the Model
-Mapping Inheritance Hierarchies
-Working with Abstract Base Classes
-Mapping Relationships
-Summary

6. Controlling Database Location, Creation Process, and Seed Data
-Controlling the Database Location
-Working with Database Initialization
-Using Database Initializers to Seed Data
-Using Database Initialization to Further Affect Database Schema
-Summary

7. Advanced Concepts
-Mapping to Nontable Database Objects
-Removing Conventions
-Taking Control of Model Caching
-Working with the EdmMetadata Table
-Using Code First with ObjectContext
-Summary

8. What's Coming Next for Code First
-Code First Migrations
-Entity Framework Power Tools

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Programming Entity Framework: Code First