Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.

Slides:



Advertisements
Similar presentations
Satisfy Your Technical Curiosity ADO.NET vNext The Entity Data Model, Object Services, and LINQ Bob Beauchemin Director of Developer Resources, SQLskills.
Advertisements

Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
MICROSOFT PLATFORM  Microsoft is a platform company is committed to providing a rich ecosystem for building and managing connected systems.  Microsoft.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Lab Chief Eng.Ilana David Supervisor:Viktor Kulikov Submitters: Darina Klots Shallev Kellerman.
ISYS 512 Business Application Design and Development with.Net David Chao.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
ISYS 512 Business Application Design and Development with.Net David Chao.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Jeremy Boyd Director – Mindscape MSDN Regional Director
A tour of new features introducing LINQ. Agenda of LINQ Presentation We have features for every step of the way LINQ Fundamentals Anonymous Functions/Lambda.
SQL Server Compact Edition 3.5 and the Entity Framework Rob Sanders and Matt Lynch.
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
Introduction to ADO Entity Framework ir Denis VOITURON Source:
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
1 Entity Framework Introduction. Outline Goals of Entity Framework 2.
Overview of SQL Server Alka Arora.
.NET Database Technologies: Entity Framework additional notes – part 2.
LINQ Boot Camp ADO.Net Entity Framework Presenter : Date : Mahesh Moily Nov 26, 2009.
ISYS 512 Business Application Design and Development with.Net David Chao.
Session 1 - Introduction and Data Access Layer
Entity Framework, a quickstart Florin−Tudor Cristea, Microsoft Student Partner.
Database Technical Session By: Prof. Adarsh Patel.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
Using SAS® Information Map Studio
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
1 Hammad Khan. COURSE CONTENTS.NET Framework And C# SQL Server 2008 ADO.NET LINQ ASP.NET Dynamics Data ASP.NET MVC framework 2 Advance C# Concepts Windows.
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
Lesson 2 What is ASP.NET? What is ASP.NET? What is Web Matrix? What is Web Matrix? What are the features of Web Matrix? What are the features of Web Matrix?
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
EntityFrame work and LINQ CH 14. linq LINQ enables you to query data from a wide variety of data sources, directly from your programming code. LINQ is.
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
ISYS 512 Business Application Design and Development with.Net David Chao.
ADO.NET 3.0 – Entity Data Model Gert E.R. Drapers Chief Software Architect Visual Studio Team Edition for Database Professionals Microsoft Corporation.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
ASP.net Course From Intermediate to Advance level By Arsalan Ahmed 3 Months Course Cell :
Exploring Networked Data and Data Stores Lesson 3.
Fundamental of Database Systems
Top 10 Entity Framework Features Every Developer Should Know
Building Enterprise Applications Using Visual Studio®
Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to Entity framework
Introduction to Entity Framework
Introduction to Visual Basic 2008 Programming
Did your feature got in, out or planned?
Introduction What is a Database?.
Entity Framework By: Casey Griffin.
ADO.NET Entity Framework Marcus Tillett
ADO.NET Entity Framework
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
ADO.NEXT Advances in Data Access for 2008
Populating a Data Warehouse
Populating a Data Warehouse
An Introduction to Entity Framework
Data, Databases, and DBMSs
Entity Framework Core.
Populating a Data Warehouse
Data Model.
Database Design Hacettepe University
Visual Studio + SQL Server Is Better
ADO.NET Entity Framework
Visual Studio 2008.
.NET Framework V3.5+ & RESTful web services
Presentation transcript:

Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify

INTRODUCTION SQL Server Compact Edition and the Entity Framework Discover, Master, InfluenceSlide 2

The SQL Server Family Discover, Master, InfluenceSlide 3 The SQL Server 2008 Family of Products Enterprise Standard Workgroup Web Express Compact

Overview: SQL Server Compact Edition Relational Database Part of the SQL Server Family Runs on: – Windows Mobile Operating Systems – Windows XP – Windows Server 2003 – Windows Vista – Windows Server 2008 Discover, Master, InfluenceSlide 4

Why would I use Compact Edition? Benefits: Great for Disconnected Systems, Lightweight - low footprint, Support for T-SQL Critical Business Reports? Discover, Master, InfluenceSlide 5

Why would I use Compact Edition? Flat File based Memory and CPU conscious design Support for T-SQL, Encryption (but not Stored Procedures) In-Process Doesn’t Require a Service (unlike other SQL Server databases) ODBC/ADO Supported Also supported by the Sync Framework (SQL Server 2008) Discover, Master, InfluenceSlide 6

What’s new in Compact Edition 3.5? Synchronization (Sync Framework) Better integration with SQL Management Studio & Visual Studio Server Explorer Extended T-SQL support – CROSS APPLY – CAST – TOP – Identity (Insert) Local Transaction Scope (On Desktops) Unicode support LINQ to SQL Discover, Master, InfluenceSlide 7

Introducing the ADO.Net Entity Framework(EF) The goal of EF is to decrease the amount of code and maintenance required for data-oriented applications – Lets you create data access applications by programming against a conceptual model instead of writing directly against a database schema – Applications are freed from hard-coded dependencies on a particular data engine or storage schema. – ADO.NET Data Services enables data to be exposed as a REST-based data service that can be consumed by Web clients. Entity Framework is central to Microsoft’s data access strategy for the.Net Framework Shipped with.Net Framework 3.5 Service Pack 1 Underpinned by LINQ to Entities Discover, Master, InfluenceSlide 8

The Entity Data Model The Entity Data Model is a Entity-Relationship data model which supports advanced features such as: – Abstract classes – Property / Entity renaming – Inheritance – Complex Types – Stored procedure mapping for insert, update and delete methods. – Mapping a single entity to multiple tables – Hiding join tables in collections – Documentation which populate Xml comments Discover, Master, InfluenceSlide 9

.Edmx Files The Entity Data Model uses a.edmx file which consists of 3 sections – Conceptual Schema Definition Language(CSDL) Defines your application’s data objects. – Store Schema Definition Language (SSDL) – Defines the storage layer Defines the layout of your database – Mapping Specification Language (MSL) – Defines the mapping between the conceptual layer and the storage layer. Maps items from the conceptual layer to the storage layer Abstracts the EDM from you – Created by the Designer (or by hand, if you are game) – Managed by the Metadata Workspace at run time – Embedded in your assembly as a resource Entity Connection String specifies the data location – Use EntityConnectionStringBuilder to build a connection string at runtime Discover, Master, InfluenceSlide 10

Entity SQL Write queries independently of the data store with a more concise language – Provides a common query language across providers by extending the existing SQL language with constructs to work with strong notions of type, inheritance, and relationships from the Entity Data Model SQL – SELECT sp.FirstName, sp.LastName, sp.HireDate FROM SalesPerson sp INNER JOIN Employee e ON sp.SalesPersonID = e.EmployeeID INNER JOIN Contact c ON e.EmployeeID = c.ContactID WHERE e.SalariedFlag = 1 AND e.HireDate >= ' ' Entity SQL – SELECT sp.FirstName, sp.LastName, sp.HireDate FROM AdventureWorks.AdventureWorksDB.SalesPeople AS sp WHERE e.HireDate >= ' ‘ Only used for select statements Discover, Master, InfluenceSlide 11

Entity Framework Objects Metadata Workspace – Runtime component which maintains the CSDL, SSDL, MSL and CLR objects. Object State Manager – Maintains object state and identity management for entity type instances and relationship instances – Tracks query results, and provides logic to merge multiple overlapping query results. – It also performs in-memory change tracking when a user inserts, deletes, or modifies objects, and provides the change set for updates. This change set is used by the change processor to persist modifications Object Context – Primary class for interacting with data from a Entity Data Model – Encapsulates a connection to the database, the metadata workspace and the object state manager – Handle this like you would handle a Sql connection – open/close. For windows forms, use one ObjectContext per application instance. For web forms, use one ObjectContext per request – and use the EntityDataSource! Discover, Master, InfluenceSlide 12

PRACTICAL IMPLEMENTATION SQL Server Compact Edition and the Entity Framework Discover, Master, InfluenceSlide 13 Image:

How Compact Edition Works with the Entity Framework Scope of the demonstration: Compact Edition integration with Server Explorer and SQL Server Management Studio Create a SQL Server Compact Edition Database Query a Compact Edition database Discover, Master, InfluenceSlide 14

How Compact Edition Works with the Entity Framework [Demo] Discover, Master, InfluenceSlide 15

Further Reading See the full presentation next month at SQL Code Camp in Wagga Wagga October 11 th and 12 th 2008 References Discover, Master, InfluenceSlide 16

Getting Started with Entity Framework Reading – MSDN Library Page – ADO.NET Team Blog – MSDN Forum ID=1 ID=1 Resources – Microsoft.NET Framework 3.5 Service Pack 1 5D1A-413D DA479AB0D7 5D1A-413D DA479AB0D7 – Microsoft Visual Studio 2008 Service Pack A D9F6D58056E A D9F6D58056E – eSqlBlast Discover, Master, InfluenceSlide 17

Thank you Rob Sanders Readify [Personal Site] [Blog] Discover, Master, InfluenceSlide 18