La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.

Presentaciones similares


Presentación del tema: "3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered."— Transcripción de la presentación:

1 3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Entity Framework In Depth
3/24/2017 4:02 PM Entity Framework In Depth Unai Zorrilla Microsoft MVP Plain Concepts © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 Modelos de Objetos != Modelos Relacionales 3/24/2017 4:02 PM
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 Entity Framework C# 3.0 VB 9.0 Otros… LINQ to Objects LINQ to DataSets
LINQ to SQL LINQ to Entities LINQ to XML <book> <title/> <author/> <year/> <price/> </book> XML Objetos Datos relacionales

6 Conceptos Clave IEnumerable hasta IQueryable Modelos conceptuales
Dominios de clases Abstración del almacenamiento Mapeo de modelos relacionales PI POCO IPOCO Clases prescriptivas Consistencia del grafo

7 Conceptos Clave IEnumerable hasta IQueryable Modelos conceptuales
Dominios de clases Abstración del almacenamiento Mapeo de modelos relacionales PI POCO IPOCO Clases prescriptivas Consistencia del grafo

8 IQueryable IEnumerable => IQueryable
Implementada en System.Linq.Queryable Basada en Arboles de Expressión Se ‘consulta’ cuando se enumera Ideal para modelos relacionales Y para almacenes con su propio lenguaje de consulta

9 demo { IQueryable} 3/24/2017 4:02 PM
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 Conceptos Clave IEnumerable hasta IQueryable Modelos conceptuales
Dominios de clases Abstración del almacenamiento Mapeo de modelos relacionales PI POCO IPOCO Clases prescriptivas Consistencia del grafo

11 Entity Data Model ¿Qué es Entity Data Model (EDM)?
Vocabulario para describir un modelo conceptual. Definido en distintos espacios Espacio S Almacén de datos físico Espacio C Modelo conceptual Nuestro Dominio de aplicación Espacio O Clases representando al Dominio Nuestros IQueryables

12 Entity Data Model Posibilidades ¿Solamente un ORM? Herencia
Herencia por Tipo Concreto ( TPC ) Herencia por Subtipo ( TPT ) Herencia por jerarquía (TPH) Tipos Complejos Entidades de sólo lectura Funciones ... ¿Solamente un ORM?

13 demo { Modelando con EDM} 3/24/2017 4:02 PM
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 Entity Data Model Espacio de Objetos Objetos POCO IPOCO
IEntityWithChangeTracker IEntityWithKey IEntityWithRelationShip Ignorancia de la persistencia Clases Prescriptivas EntityObject

15 Conceptos Clave IEnumerable hasta IQueryable Modelos conceptuales
Dominios de clases Abstración del almacenamiento Mapeo de modelos relacionales PI POCO IPOCO Clases prescriptivas Consistencia del grafo

16 Consistencia del Grafo
ObjectStateManager Responsable del mantenimiento de las identidades de los objetos. Responsable del control de cambios. Reponsable de la consistencia de los grafos. Punto de entrada a cada una de las entidades y relaciones de las mismas. ObjectStateEntry

17 Consistencia del grafo
Connection provider Metadata MSL SSDL CSDL State Management CRUD

18 Consistencia del grafo
1 2 3 Consulta “select ...” Entidades 1 3

19 Consistencia del grafo
DML 3’ evento 3

20 Consistencia del grafo
DML SaveChanges() provider SQL CRUD

21 { Consistencia del grafo}
3/24/2017 4:02 PM { Consistencia del grafo} demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 Consistencia del Grafo
A tener en cuenta Tenga en cuenta la creación de relaciones. Soluciones en aplicaciones distribuidas. Contextos cortos Sin consistencia del grafo MergeTracking Off Un solo contexto Mantenimiento del estado entre capas Sin ‘ DiffGram’.

23 {Y ya para ir cerrando…}
3/24/2017 4:02 PM {Y ya para ir cerrando…} Recursos y más © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

24 {Stand de Plain Concepts}
Pregúntanos tus dudas. Conoce nuestras propuestas Y entra en el sorteo de estos 2 libros sobre .NET 3.5

25 Enlaces de Interés Unai Zorrilla Castro http://www.geeks.ms/blogs/unai
Octavio Hernández Leal Pablo Castro - Technical Lead Daniel Simmons Zlatko Michailov

26 3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Descargar ppt "3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered."

Presentaciones similares


Anuncios Google