Cargando…

Programming entity framework : Code First /

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 a...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Lerman, Julia
Otros Autores: Miller, Rowan
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Sebastopol : O'Reilly Media, 2012.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Table of Contents; Preface; Audience; Contents of This Book; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 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; Configuring with Data Annotations; Configuring with the Fluent API; Creating or Pointing to a Database.
  • What Code First Does Not SupportChoosing Code First; Learning from This Book; Chapter 2. Your First Look at Code First; Introducing EF to the Domain Classes; Putting the Pieces Together in an Example; Convention for Table, Schema, and Column Names; Convention for Keys; Convention for String Properties; Convention for Byte Array; Convention for Booleans; Convention for One-to-Many Relationships; Overriding Convention with Configurations; Configuring with Data Annotations; Understanding How Model Changes Impact Database Initialization; Data Annotations and Validation-Aware UIs.
  • Configuring Code First with the Fluent APIOrganizing Fluent Configurations; Summary; Chapter 3. Using Conventions and Configurations for Property Attributes; Working with Property Attributes in Code First; Length; Data Type; Nullability and the Required Configuration; Mapping Keys; Code First Convention Response to Unconventional Key Properties; Configuring the Key with Data Annotations; Using HasKey to Configure a Key Property in the Fluent API; Configuring Database-Generated Properties; Configuring Database-Generated Options with Data Annotations.
  • Configuring Database-Generated Options with the Fluent APIConfiguring TimeStamp/RowVersion Fields for Optimistic Concurrency; Code First Convention and TimeStamp fields; Using Data Annotations to Configure TimeStamp; Configuring TimeStamp/RowVersion with Fluent API; Configuring Non-Timestamp Fields for Concurrency; Configuring for Optimistic Concurrency with Data Annotations; Configuring for Optimistic Concurrency with Fluent API; Mapping to Non-Unicode Database Types; Affecting the Precision and Scale of Decimals; Convention for Precision and Scale; Data Annotations for Precision and Scale.
  • Fluent Configuration for Precision and ScaleWorking with Complex Types in Code First; Defining Complex Types by Convention; Configuring Unconventional Complex Types; Specifying complex types with Data Annotations; Specifying complex types with the Fluent API; Working with More Complicated Complex Types; Configuring Properties of Complex Types; Configuring Complex Types with Data Annotations; Configuring Complex Type Properties with the Fluent API; Summary; Chapter 4. Using Convention and Configuration for Relationships; Working with Multiplicity; Configuring Multiplicity with Data Annotations.