Mastering Entity Framework.
Data access is an integral part of any software application. Entity Framework provides a model-based system that makes data access effortless for developers by freeing you from writing similar data access code for all of your domain models. Mastering Entity Framework provides you with a range of opt...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Packt Publishing,
2015.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Table of Contents
- Preface
- Chapter 1: Introduction to Entity Framework
- Entity Framework modeling and persistence
- Understanding Entity Data Model
- Understanding the ObjectContext class
- Development styles and different Entity Framework approaches
- Comparing the development styles
- The Database First approach
- The Model First approach
- The Code First approach
- Entity Framework Database First approach
- ""Entity Framework Model First approach""""Entity Framework Code First approach""; ""Performing CRUD operations using Entity Framework""; ""Reading a list of items""; ""Reading a specific item""; ""Creating a new item""; ""Updating an existing item""; ""Deleting an item""; ""Choosing persistence approaches""; ""Summary""; ""Chapter 2: Entity Framework DB First � Managing Entity Relationships""; ""Understanding database relationships""; ""One-to-many relationship""; ""One-to-one relationship""; ""Many-to-many relationship""; ""Creating the Entity model""
- ""Modeling a one-to-many relationship""""Modeling a one-to-one relationship using Entity Framework""; ""Modeling a many-to-many relationship using Entity Framework""; ""Using Navigation properties for data access""; ""Retrieving a specific item""; ""Retrieving a list of items""; ""Adding an item""; ""Updating an item""; ""Deleting an item""; ""Entity Framework � behind the scenes""; ""Summary""; ""Chapter 3: Entity Framework DB First � Performing Model Validations""; ""Model validations using Entity Framework""; ""Model validations using partial class methods""
- Understanding partial methodsUsing partial methods to perform model validations
- Model validations using data annotations
- Specifying validation rules using data annotations
- Validating the required fields
- Validating the length of fields
- Regular expression-based validations
- Triggering validations using data annotations
- Trigger validations in data binding environments
- Trigger validations in non-data binding environments
- Implementing custom validations using data annotations
- Summary
- ""Chapter 4: Entity Framework DB First � Inheritance Relationships between Entities""""Domain modeling using inheritance in Entity Framework""; ""The Table per Type inheritance""; ""Generating the default Entity Data Model""; ""Deleting default relationships""; ""Adding inheritance relationships between entities""; ""Using the entities via the DBContext object""; ""The Table per Class Hierarchy inheritance""; ""Generating the default Entity Data Model""; ""Adding concrete classes to the Entity Data Model""; ""Mapping the concrete class properties to the respective tables and columns""