All-In-One Data Platform Code Samples

All-In-One Data Platform Code Samples

 

Introduction

The All-In-One Data Platform code samples demonstrate the typical programming topics about ADO.NET, Entity Framework, WCF Data Services, ADO, and other Data Platform technologies. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing against data in projects.

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CppUseADO The sample demonstrates using ADO to access database from a native VC++ application Download ReadMe.txt
CppUseADONET The VC++ sample demonstrates using ADO.NET to access database from a native VC++ application Download ReadMe.txt
CSADONETDataService The code sample demonstrates creating ADO.NET Data Services for three different data sources: ADO.NET Entity Data Model, LINQ to SQL Data Classes, and non-relational in-memory data. Download ReadMe.txt
CSADONETDataServiceClient The code sample shows how to invoke the ADO.NET Data Services from a VC# application Download ReadMe.txt
CSADONETDataServiceSL3Client The VC# code sample shows how to use ADO.NET Data Service in Silverlight Download ReadMe.txt
CSAzureServiceBusWCFDS This Windows Azure code sample demonstrates accessing data on premise from Cloud by using Service Bus and WCF Data Service Download ReadMe.txt
CSAzureTableStorageWCFDS This Windows Azure code sample demonstrates accessing data on Windows Azure Table Storage by using WCF Data Services Download ReadMe.txt
CSEFEntityDataModel This example illustrates how to work with Entity Data Model in various ways. Download ReadMe.txt
CSLinqExtension This code sample demonstrates extending the LINQ technology to access CSV files, File System information, .NET assemblies(Reflection), and string text. Download ReadMe.txt
CSLinqToDataSets The VC# sample demonstrates using the LINQ technology to access untyped DataSet and strong-typed DataSet Download ReadMe.txt
CSLinqToEntities The VC# sample demonstrates using the LINQ technology to access ADO.NET Entity Data Model Download ReadMe.txt
CSLinqToObject This code sample illustrates how to write LINQ to Object queries using Visual C#. Download ReadMe.txt
CSLinqToSQL The VC# sample demonstrates using the LINQ technology to access a SQL Server database Download ReadMe.txt
CSLinqToXml This example illustrates how to use Linq to XML in C# to create XML document from in-memory objects and SQL Server database Download ReadMe.txt
CSUseADO The VC# sample demonstrates using ADO to access database from a .NET application Download ReadMe.txt
CSUseADONET The VC# sample demonstrates using ADO.NET to access database from a .NET application Download ReadMe.txt
SQLServer2005DB This is a SQL Server database project for SQL Server 2005. When you build and deploy the project in Visual Studio 2008, it creates a database in the specified SQL Server instance. Download ReadMe.txt
VBADONETDataService The code sample demonstrates creating ADO.NET Data Services for three different data sources: ADO.NET Entity Data Model, LINQ to SQL Data Classes, and non-relational in-memory data. Download ReadMe.txt
VBADONETDataServiceClient The code sample shows how to invoke the ADO.NET Data Services from a VB application Download ReadMe.txt
VBADONETDataServiceSL3Client The VB code sample shows how to use ADO.NET Data Service in Silverlight Download ReadMe.txt
VBAzureServiceBusWCFDS This Windows Azure code sample demonstrates accessing data on premise from Cloud by using Service Bus and WCF Data Service Download ReadMe.txt
VBAzureTableStorageWCFDS This Windows Azure code sample demonstrates accessing data on Windows Azure Table Storage by using WCF Data Services Download ReadMe.txt
VBEFEntityDataModel This example illustrates how to work with Entity Data Model in various ways. Download ReadMe.txt
VBLinqExtension This code sample demonstrates extending the LINQ technology to access CSV files, File System information, .NET assemblies(Reflection), and string text. Download ReadMe.txt
VBLinqToDataSets The VB sample demonstrates using the LINQ technology to access untyped DataSet and strong-typed DataSet Download ReadMe.txt
VBLinqToEntities The VB sample demonstrates using the LINQ technology to access ADO.NET Entity Data Model Download ReadMe.txt
VBLinqToObject This example illustrates how to write LINQ to Object queries using Visual Basic. Download ReadMe.txt
VBLinqToSQL The VB sample demonstrates using the LINQ technology to access a SQL Server database Download ReadMe.txt
VBLinqToXml This example illustrates how to use Linq to XML in VB.NET to create XML document from in-memory objects and SQL Server database Download ReadMe.txt
VBUseADO The VB sample demonstrates using ADO to access database from a .NET application Download ReadMe.txt
VBUseADONET The VB sample demonstrates using ADO.NET to access database from a .NET application Download ReadMe.txt

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CSEFCodeOnly This example illustrates how to use the new feature Code Only in the ADO.NET Entity Framework 4.0 to use create the Entity Data Model metadata and the corresponding .edmx file with POCO entity classes and ObjectContext class at runtime. Download ReadMe.txt
CSEFComplexType This example illustrates how to work with the Complex Type which is new in ADO.NET Entity Framework 4.0. Download ReadMe.txt
CSEFForeignKeyAssociation This example demonstrates one of the new features of ADO.NET Entity Framework 4.0: Foreign Key Association. Download ReadMe.txt
CSEFLazyLoading This example illustrates how to work with the Lazy Loading which is new in ADO.NET Entity Framework 4.0 Download ReadMe.txt
CSEFModelFirst This example illustrates how to use the new feature - Model First - in the ADO.NET Entity Framework 4.0 to generate DDL that will create a database according to the Entity Data Model. Download ReadMe.txt
CSEFPOCOChangeTracking The ADO.NET Entity Framework 4.0 code sample illustrates how to update POCO entity properties and relationships with/without change tracking proxy. Download ReadMe.txt
VBEFCodeOnly This example illustrates how to use the new feature Code Only in the ADO.NET Entity Framework 4.0 to use create the Entity Data Model metadata and the corresponding .edmx file with POCO entity classes and ObjectContext class at runtime. Download ReadMe.txt
VBEFComplexType This example illustrates how to work with the Complex Type which is new in ADO.NET Entity Framework 4.0. Download ReadMe.txt
VBEFForeignKeyAssociation This example demonstrates one of the new features of ADO.NET Entity Framework 4.0: Foreign Key Association. Download ReadMe.txt
VBEFLazyLoading This example illustrates how to work with the Lazy Loading which is new in ADO.NET Entity Framework 4.0 Download ReadMe.txt
VBEFModelFirst This example illustrates how to use the new feature - Model First - in the ADO.NET Entity Framework 4.0 to generate DDL that will create a database according to the Entity Data Model. Download ReadMe.txt
VBEFPOCOChangeTracking The ADO.NET Entity Framework 4.0 code sample illustrates how to update POCO entity properties and relationships with/without change tracking proxy. Download ReadMe.txt

Download all code samples: https://1code.codeplex.com/releases

Submit your request of Data Platform code samples (Guidance)