DEV353: Data Access in Visual Studio 2008 – Slide Decks and Demos

יום חמישי, אפריל 10, 2008

DEV353: Data Access in Visual Studio 2008 - Slide Decks and Demos Earlier this week I presented at Tech Ed Israel 2008. My session title was What's new around Data Access in Visual Studio 2008, and I talked about the following topics: DataSets Enhancements in Visual Studio 2008 and .Net Framework 3.5 (watch the screencast) Adding a Service Reference to a service with DataSets as part of its operations signature ...

Service Factory: Modeling Edition – A New CTP for Visual Studio 2008

יום שישי, דצמבר 28, 2007

Service Factory: Modeling Edition - A New CTP for Visual Studio 2008 The patterns & practices group has released a new CTP of the Service Factory: Modeling Edition that works with Visual Studio 2008. Note that this release is only a CTP, and the full release is scheduled for February 2008, around the time Visual Studio 2008 is officially launched. To get started with the Service Factory: Modeling Edition, you should download the Visual Studio 2008 SDK 1.0 and the Guidance Automation Toolkit (July 2007 Community Technology Preview) and then, download and install...

ADO.Net Data Services Feedback: DataContextServiceProvider Required for LINQ to SQL support

יום חמישי, דצמבר 20, 2007

ADO.Net Data Services Feedback: DataContextServiceProvider Required for LINQ to SQL support After writing my previous posts about ADO.Net Data Services: ADO.Net Data Services Part 1 - Building a Simple Web Data Service ADO.Net Data Services Part 2 - Using Service Operations with WebGet ADO.Net Data Services Part 3 - Querying a Web Data Service and WebDataGen.exe I took a little time to write some logic that manipulates data on the client side and applies the changes back to the service. Starting with adding a new...

ADO.Net Data Services Part 3 – Querying a Web Data Service and WebDataGen.exe

ADO.Net Data Services Part 3 - Querying a Web Data Service and WebDataGen.exe This post is part of a series of posts about ADO.Net Data Services, a part of the ASP.Net 3.5 Extensions. In ADO.Net Data Services Part 1 - Building a Simple Web Data Service I had a step by step guide for building a simple web data service, that exposed resources as IQueryable properties of the DataContext. In ADO.Net Data Services Part 2 - Using Service Operations with WebGet I added some Service Operations to the Data Service, and worked with them. In both of the...

LINQ to SQL Session @ Developer Academy 2 – Video is now Available

יום שלישי, דצמבר 18, 2007

LINQ to SQL Session @ Developer Academy 2 - Video is now Available On November 27th, 2007 I gave a session about LINQ to SQL at the Developer Academy 2 (The Israeli developers conference). You can download the presentation and video from My Presentations page. Although the presentation was given in Hebrew, you can benefit from the demos that were given in C#... Enjoy!

ADO.Net Data Services Part 2 – Using Service Operations with WebGet

יום ראשון, דצמבר 16, 2007

ADO.Net Data Services Part 2 - Using Service Operations with WebGet This post is part of a series of posts about ADO.Net Data Services, a part of the ASP.Net 3.5 Extensions. In ADO.Net Data Services Part 1 - Building a Simple Web Data Service I had a step by step guide for building a simple web data service, that exposed resources as IQueryable properties of the DataContext. I this post, I will add some Service Operations to the Data Service. 1. Open the Blog Data Service fService Operations rom Part 1. If you haven't had a chance...

How To: Create a RSS Syndication Service with WCF

יום שני, דצמבר 3, 2007

How To: Create a RSS Syndication Service with WCF This post is a step by step guide for creating a Syndication Service with WCF. In this guide, I will create a WCF Service that returns my blogs posts as RSS 2.0 and ATOM items, that can be consumed with an RSS Reader. Creating the Service Contract 1. Create a new Class Library, and add references to the System.Runtime.Serialization.dll which contains the basic attributes used for serialization, System.ServiceModel.dll which contains the WCF components that shipped with .Net Framework 3.0, and System.ServiceModel.Web.dll which is a .Net Framework 3.5...
no comments

LINQ to SQL Concurrency – ChangeConflictException Row not found or changed

יום ראשון, נובמבר 25, 2007

LINQ to SQL Concurrency - ChangeConflictException Row not found or changed If we create a small model of the Northwind database, and we try to modify one of the customers (lets take ALFKI for example): NorthwindDataContext db = new NorthwindDataContext();   Customer alfki = db.Customers.Single(c => c.CustomerID == "ALFKI"); alfki.City = "London";   db.SubmitChanges(); We will see that the update command that is created by the run time is: UPDATE   Customers ...

Copy Source As Html (CopySourceAsHtml) for Visual Studio 2008 RTM

יום רביעי, נובמבר 21, 2007

Copy Source As Html (CopySourceAsHtml) for Visual Studio 2008 RTM   After the release of Visual Studio 2008 RTM, I really needed to blogs about technical stuff and needed Copy Source As Html (CopySourceAsHtml) with Visual Studio 2008 support. You can download this zip file, and extract it to your Visual Studio 2008 Addins folder. For vista is it C:\Users\<username>\Documents\Visual Studio 2008\Addins, and it should be somewhere under C:\Documents and settings If you're working with XP. Notice that this folder might not be exist, so you should create it. After placing...

LINQ to SQL: Table<T>.Detach Method Does Not Exist

LINQ to SQL: Table<T>.Detach Method Does Not Exist Moving from Visual Studio 2008 Beta 2 to Visual Studio 2008 RTM, I read about LINQ to SQL Breaking Changes from Visual Studio 2008 Beta 2 to RTM. From the document: Table<T>.Attach changed to throw an exception if attached entity has not been detached The designed purpose of Table<T>.Attach method is to let you make a DataContext aware of objects that are transferred from other tiers, usually through serialization/deserialization. Once the entities are attached, the DataContext can track their...