Visual Studio + SQL Server Is Better Børge Hansen
Visual Studio Team System 2008 Database Edition ADO.Net Entity Framework ADO.Net Data services Sync Services for ADO.Net
VSTS Database Edition Source control of all database objects. Code Analysis on T-SQL code Dependency tree Unit testing Refactoring Data compare/Schema compare
VSTS Database Edition Edit Refactor Compare Database Project Deploy Build Data Generation Test Compare
DEMO
ADO.Net Entity Framework
LINQ to * LINQ to Object LINQ to Entities LINQ to SQL LINQ to XML LINQ to [YourToolHere]
ADO.Net Entity Framework
Object Services
Models, Mapping and Objects
DEMO
ADO.Net Data Services
ADO.Net Data Services High-level Model Uniform URI’s Flexible Formats Entity Data Model First-class entities, associations Uniform URI’s Entities as resources Filter, sort, navigate, paging Flexible Formats Plain XML JSON Atom
ADO.Net Data Services Data Exchange Retrieving data Generic URIs: /Customers!123/SalesOrders Operations: /CustomersByState?state=WA Options: sorting, paging, navigation Storing data Simply use HTTP PUT, POST, DELETE Same URIs: PUT to /Customers!123
DEMO
Sync Services for ADO.NET In Beta Now – ships with SQL Server Compact 3.5, VS 2008 Works with VS 2005, .NET FX 2.0 Builds on ADO.NET skills, Developer Productivity w/many features of Merge Replication Visual Studio 2008 RAD configuration of Sync Services and SQL Server Compact SQL Server 2008 Integrated change tracking making SQL Server 2008 your best server
ADO.Net Data access DataAdapter Server DB Forms SelectCommand InsertCommand Server DB Connection Forms UpdateCommand DeleteCommand
Sync Services for ADO.NET Select Incremental Inserts Select Incremental Updates SyncAdapter DataAdapter Select Incremental Deletes InsertCommand Server DB Connection Forms UpdateCommand DeleteCommand Select Conflict Updated Rows… Select Conflict Deleted Rows…
Sync Services for ADO.NET Select Incremental Inserts SyncAdapter Select Incremental Deletes InsertCommand UpdateCommand DeleteCommand Connection Select Incremental Updates Select Conflict Updated Rows… Select Conflict Deleted Rows… Server DB Forms SQL Server Compact 3.5
What it is: Where it’s deployed Scenarios Very small (~1MB) embedded, in-proc database Nice subset of SQL Server types and SQL dialect Does not have: Stored Procs, Views, Xquery Why limit programming to T-SQL when you have managed code What it is: Mobile & Embedded devices Windows Vista, Media Center PC, MSN Client, ZUNE, Windows Media Player, … Default Local/Client database offering in VS 2008 Where it’s deployed Local online / offline cache Local, stand alone application database Persistent data manager for In-Memory database Structured document format for custom apps Scenarios
Delivering an OCS Vision VS 2005 SP1 Visual Studio 2008 SQL Server 2008 SQL Server Compact Edition Enable Desktop Clients Easy to deploy and redistribute Sync Services for ADO.NET Includes Agent, SQLce Provider, configurable server provider Adds sync capabilities to familiar ADO.NET syntax Visual Studio 2008 Sync Designer Automates config of client & server Generates code to query server for sync information SQL Server 2008 Includes SQL Server 2008 provider Improves performance Simplifies developmen Integrated Change Tracking
More on... Visual Studio Team System 2008 Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta ADO.NET Entity Framework Overview ADO.NET Data Services Microsoft Sync Framework Developer Center