Working with Client-Side Storage Using datajs Store API

April 29, 2011

Working with Client-Side Storage Using datajs Store API One of the interesting features that datajs library includes is a store API which abstract the use of client-side storage mechanisms. You can use the store API in order to have a storage layer in your client-side and therefore reduce the calls for the server. Since datajs is only in alpha then this API might change in the future but even so I’ll explain and show a how to use it in this post. datajs Storage Options datajs currently provides an abstraction layer on top of the following three client-side storage...
no comments

Making a JSONP Call to a WCF Data Service using datajs

April 24, 2011

Making a JSONP Call to a WCF Data Service using datajs During MIX11 I attended a very interesting session about datajs which was presented by Asad Khan and Marcelo Lopez Ruiz. As I promised in my previous post, in this post I’ll show you how to make a JSONP call to a WCF Data Service using datajs library. A Little About datajs datajs is a very promising JavaScript library which is currently being built by Microsoft as an open source in CodePlex. The library as described in its CodePlex site is “a new cross-browser JavaScript library...

Combining WCF Data Services, JSONP and jQuery

Combining WCF Data Services, JSONP and jQuery During Mike Flasko’s session at MIX11, he showed how to create a JSONP aware WCF Data Service with a JSONPSupportBehavior attribute that is available for download from MSDN code gallery (and is supposed to be a part of Microsoft.Data.Services.Extensions namespace). In this post I’ll show a simple example that uses the attribute and jQuery in order to make a JSONP cross domain call for a WCF Data Service. Setting up the Environment First I started by creating two different ASP.NET web applications. The first application includes the...
no comments

Configuring WCF Data Services using Lambda Expressions

April 21, 2011

Configuring WCF Data Services using Lambda Expressions One of the things that I avoid when I’m writing code is the use “magic strings”. Hardcoded strings are a code smell and should be rarely used. When using WCF Data Service configuration object you’ll have to pass the entity set’s string name to the configuration methods which as I wrote I would like to avoid. This is why in today’s post I’m going to extend the DataServiceConfiguration object to support lambda expressions instead of string parameters. Data Service Configuration Extensions I’ve created a simple static class that includes two new extension methods: SetEntitySetAccessRule<DataSource>...
no comments

Spreading Inheritance Tree Mapping Across Assemblies in Code First

April 17, 2011

Spreading Inheritance Tree Mapping Across Assemblies in Code First Today I helped a client to solve a problem regarding EF4.1 Code First. The issue that they banged their heads with was an inheritance tree mapping in their model which is spread across two different assemblies. When they run the application they always got the same exception – “mapping and metadata information could not be found for entitytype ‘entity name’”. So they sent me a sample solution and I checked it and gave them the solution. The Client Provided Model In one class library there are the...
no comments

Wrapping Up the MIX11 Experience

Wrapping Up the MIX11 Experience I got back home yesterday’s evening after ~20 hours on flights. This is the time to wrap up the MIX11 conference experience. Here are all the posts I wrote during the conference: MIX11 Keynote Session Summary MIX11 First Day Sessions Summary MIX11 Second Keynote Session Summary MIX11 Second Day Sessions Summary MIX11 Third Day Sessions Summary Summary of MIX11 announcements - IE10 Preview 1 was released and can be download from here A new tools update for ASP.NET MVC3 was released WebMatrix got an update Windows Azure has some new features The next version of Windows Phone 7 – Mango – is coming...
no comments

MIX11 Third Day Sessions Summary

April 14, 2011

MIX11 Third Day Sessions Summary Here is a summary of the sessions I attended in the third day of MIX11: The Future of HTML5 In the session Giorgio Sardo talked about What is HTML5? – HTML’s new specifications which are getting specified by W3C, IETF and ECMA in working groups for each specification out of ~100 specifications. Microsoft thinks that HTML5 is ready to go to Last Call phase in May 2011 – meaning it will need to go to RC and then recommendation afterward. ...
no comments

MIX11 Second Day Sessions Summary

MIX11 Second Day Sessions Summary Here is a summary of the sessions I attended in the second day of MIX11: An Overview of the MS Web Stack of Love In the session Scott Hanselman showed a lot of demos in the Microsoft web platform. The things that Scott showed: ASP.NET MVC 3 + new tools Scaffolding IIS Express NuGet EF4.1 Glimpse – a new open...

MIX11 Second Keynote Session Summary

April 13, 2011

MIX11 Second Keynote Session Summary I’m currently attending the MIX11 second keynote session. Here are some of the things that you might consider to checkout in the following weeks: The next version of Windows Phone 7 – Mango – is coming 16 additional languages will be added in the next version (still without Hebrew) More countries will be added for apps creation More countries will be...
no comments