ado.net entity framework 소개

of 16 /16
http://blog.naver.com/woom333 ADO.NET Entity Framework ADO.NET Entity Framework 소소 소소 소소소 Microsoft Visual C# MVP http://blog.naver.com/woom333

Author: ifama

Post on 17-Jan-2016

88 views

Category:

Documents


1 download

Embed Size (px)

DESCRIPTION

ADO.NET Entity Framework 소개. 2008.11.15. 한용희 Microsoft Visual C# MVP http://blog.naver.com/woom333. 차례. Programmer VS. Data Base Administrator Object VS. Data LINQ LINQ Project LINQ to SQL LINQ to Entities LINQ to DataSet 유연한 매핑 M:N 매핑 Entity Splitting Table per Hierarchy - PowerPoint PPT Presentation

TRANSCRIPT

  • ADO.NET Entity Framework Microsoft Visual C# MVPhttp://blog.naver.com/woom333

  • Programmer VS. Data Base AdministratorObject VS. DataLINQLINQ ProjectLINQ to SQLLINQ to EntitiesLINQ to DataSet M:N Entity SplittingTable per HierarchyTable per TypeDEMO

  • Programmer VS. Data Base Administrator

  • Object VS. DataObjectObjectObjectStorageModelConceptualModelMapping

    Table

    Table

    Table

  • LINQ(Language Integrated Queries)

  • LINQ ProjectLINQ to ObjectsLINQ to DataSetsLINQ to SQLLINQ to EntitiesLINQ to XML

  • LINQ to SQL Microsoft SQL Server (Direct Mapping) SQL , , (Table Valued Function), TPH (Table per Hierarchy)

  • LINQ to Entities DB(Oracle, DB2, Microsoft SQL Server) (Flexible Mapping) / TPH (Table per Hierarchy)TPT (Table per Type)Complex Type (: [,,,] )M:N

  • LINQ to DataSet (Disconnected Cache) (Typed DataSet)

    (Untyped DataSet)

    var query = from row in myDataSet.Tables["Customers"].AsEnumerable() where row .Field("City") == "London" select new { row.Field ("CustomerID"),row.Field ("ContactName") } ;

    var query = from customer in northwind.Customers where customer.City == "London" select customer;

  • (Flexible Mapping)

  • M:N

  • Entity Splitting

    EmployeesIDNameTypeLoginIDPassword

    PersonIDNameType

    UserIDLoginIDPassword

  • Table Per Hierarchy(TPH)

  • Table Per Type (TPT)

  • *

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

    **Select the Person entity type. In the Properties window, set its Abstract property to true.A message box appears to tell you that defining an entity type as abstract will remove all existing function mappings for that type. Click OK.

    Note You do not have to use abstract types to model table-per-hierarchy scenarios in general. Abstract types are used in this example to demonstrate their use in an EDM.

    Note The remaining steps in this procedure require the Mapping Details window. If this window is not visible, right-click the design surface and select Mapping Details.

    *