I am writing this module to dynamically create Entity SQL query which go against the Entity Framework. To prevent SQL injection, instead of directly concatenating the string I am passing the values for the where clause using the array of ObjectParameter[]. Since I am dynamically creating the Parameter array in order to ...
This post will address how to AutoScroll to a specific object (row) in the DataGrid and select it. gridContactsList is of type Microsoft.Windows.Controls.DataGrid This is a great way of automatically selecting the newest inserted row in the Grid. Once you know the index of the newly created object and you have added it ...
I am working on this project where I had a list of parent - child elements and I had to extract a particular chain of parent - child elements, given the starting child. I am sure lot of developers have written this code. As a natural instinct I started googling ...
There are plenty of URL shortening services designed for Twitter. Recently, Twitter picked bit.ly as their official URL shortening service. Here is quick Java code to expand short URL to original URL- System.out.println("Short URL: "+ shortURL); urlConn ...
Lot of times I see myself going back to the books to check which 'collection' would be the best suited for a particular activity I am performing in my code. After doing this several times I thougt it would be ...




| website design quote |