Phani Raj
Software Engineer at PostHog

Yep , I got Tagged . And by none other than Pablo Castro !!. Now that I’ve finished gloating , let me propagate the Meme. How old were you when you started programming?       I was 15 when I first got my hands on a PC in my school’s computer lab.       and then BASIC happened and I realized that the machine in front of me is filled with immense potential        and that simple written words could bring life...

Today's Post is co-Authored by Linq Ninja and my Colleague MarceloLinq to Astoria does not support Set based queries , which means that this query is invalid List<string> citiesIWillVisit = new List<string>(){ "London", "Berlin", "Prague" }; var customersAround = nwContext.Customers.Where<Customers>(cx => citiesIWillVisit.Contains(cx.City)); The above example would use the IN operator to search for a property ina given set of values.You can achieve the same query using Dynamic Linq Queries to filter over a set of values by creating Dynamic Linq...

I’ve seen that users are having some question about how to deal with certain types of relations between entities and how to deal with them in the client library.I will outline the a couple of common scenarios of using the client library among a few relationship types. I'll be using the AdventureWorks Database for examples of relations. 1..1 Associations This is the case of entities associated with each other 1..1 . An example from Adventureworks is the relation between Individual...

Hi all, By now , anyone running a SIlverlight application Astoria Silverlight Client library in Firefox 3.0 would have seen a weird error about charsets. This blog post will describe the error and how to work-around it . Consider the following query : DataServiceQuery<Customers> customerQuery = from cus in context.Customers where cus.ID =='ALFKI' select cus; AsyncCallback ac = iasyncResult =>{ DataServiceQuery<Customers> cusQuery = iasyncResult.AsyncState as DataServiceQuery<Customers>; QueryOperationResponse<Customer> response = cusQuery.EndExecute(iasyncResult); <-- Exception Thrown here } customerQuery.BeginExecute(ac,customerQuery); When this code runs...

When developing your service , you might run into some issues and you want to debug your service. Imagine that you are inserting data into the store using astoria and you start getting DataServiceExceptions in your client code. The normal error message would be .. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code></code> <message xml:lang="en-US">An error occurred while processing this request.</message> </error> While debugging the service , you would need more information that just this generic error message . To switch...

So , I finally made a move from my job in PSS to the product I enjoyed playing with most , ASTORIA ( ADO.NET Data Sources ). Of course, this means that I have moved from half-way across the world to join the team in Redmond, WA. About a week after I joined , we went Skiing .  Me , being a  novice , hurt myself snowboarding and wear a band-aid on my forehead as proudly as one would wear...

Ok , this has to be the coolest thing ever !!Angus just announced this over on his blog , you can   now add a web version of the windows Live Communicator to your blog / website.You can find details about how to set this up on his blog . Re-sizing the IM Control . The markup to be added to your blog contains the width and the height specified as 300 px.You can modify the Width and  the height  of...