Click here to Skip to main content

Articles by merlin981 (Article: 1, Technical Blogs: 18)

Article: 1, Technical Blogs: 18

RSS Feed

Average article rating: 2.76

Miscellaneous

Using Themer To Skin Forms and Controls
Posted: 16 Aug 2007   Updated: 16 Aug 2007   Views: 44,295   Rating: 2.76/5    Votes: 14   Popularity: 3.17
Licence: Not specified      Bookmarked: 20   Downloaded: 786
Using Themer To Skin Forms and Controls

Average blogs rating: 3.27

Files and Folders

How to Get a List of Files and Folders Without Directory.GetFiles Access Denied Error [Technical Blog]
Posted: 20 Jul 2009   Updated: 20 Jul 2009   Views: 18,356   Rating: 3.75/5    Votes: 3   Popularity: 1.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 0
I know the title is a bit long, but it descriptive of the problem. Recently I had need to retrieve a listing of files and folders given a root path. All worked well, until I tested on Vista and Windows 7 machines. When trying to browse the "Users" folder, I kept getting access denied errors and no

Database

Using LINQ to SQL with SQL Server Compact [Technical Blog]
Posted: 12 May 2009   Updated: 12 May 2009   Views: 13,211   Rating: 3.15/5    Votes: 4   Popularity: 1.81
Licence: Not specified      Bookmarked: 19   Downloaded: 0
In this article, I will cover how to access data in SQL Server Compact databases (.sdf files) using the new development technologies such as LINQ.

SQL Reporting Services

How to Create T-SQL CASE Statements With LINQ To SQL [Technical Blog]
Posted: 20 Jul 2009   Updated: 20 Jul 2009   Views: 10,035   Rating: 2.60/5    Votes: 2   Popularity: 0.78
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
I was recently asked to helpwith a LINQ To SQL query where the resulting T-SQL query was tohave CASE statements. Having CASE statements in T-SQL queries is acommon scenario but how do we it in LINQ To SQL? The solution is simple and straight-forward. As you will see below, using C#'s "Immed
LINQ to SQL Tips and Tricks [Technical Blog]
Posted: 1 Oct 2009   Updated: 1 Oct 2009   Views: 8,001   Rating: 3.80/5    Votes: 3   Popularity: 1.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
There are many little tips and tricks for LINQ to SQL which can make our lives easier, or improve the speed and efficiency of the generated code. Below are several tips and tricks I have found during my time as a LINQ developer.*Note: Some of these tips are for querying directly from the table.
How to Create T-SQL CASE Statements With LINQ To SQL [Technical Blog]
Posted: 5 Oct 2009   Updated: 5 Oct 2009   Views: 8,463   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
I was recently asked to helpwith a LINQ To SQL query where the resulting T-SQL query was tohave CASE statements. Having CASE statements in T-SQL queries is acommon scenario but how do we it in LINQ To SQL? The solution is simple and straight-forward. As you will see below, using C#'s "I

C#

How to Read Twitter Feeds With LINQ to XML [Technical Blog]
Posted: 2 Apr 2009   Updated: 2 Apr 2009   Views: 15,269   Rating: 4.50/5    Votes: 3   Popularity: 2.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 1
Twitter feeds are provided in RSS XML format. This makes it very easy for us to parse out the information we want from a feed using LINQ to XML. For example, if we want to grab the message and date of each Twitter entry, we could use something like this: public class Twitter {     public str
How to Use LINQ GroupBy [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 14,073   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
The&lsquo;GroupBy&rsquo; feature in LINQ is amazing and very powerful. When you use a&lsquo;GroupBy&rsquo; in LINQ, internally it calls an extension method whichreturns a sequence of System.Collections.Generic.IEnumerable)>)>)>)TheGroupBy<(Of <(TSource, T

LINQ

How to Use LINQ GroupBy [Technical Blog]
Posted: 19 Apr 2009   Updated: 19 Apr 2009   Views: 172,088   Rating: 3.92/5    Votes: 10   Popularity: 3.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 0
How to use the LINQ GroupBy feature.
How to Read Twitter Feeds With LINQ to XML [Technical Blog]
Posted: 19 Apr 2009   Updated: 19 Apr 2009   Views: 12,294   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
Twitter feeds are provided in RSS XML format. This makes it very easy for us to parse out the information we want from a feed using LINQ to XML.
GroupBy Multiple Values in LINQ [Technical Blog]
Posted: 23 Apr 2009   Updated: 23 Apr 2009   Views: 9,415   Rating: 4.20/5    Votes: 3   Popularity: 2.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
A simple example to show you how to GroupBy Multiple Values using LINQ

Parallel Programming

Thread Safe Generic Queue Class [Technical Blog]
Posted: 2 Oct 2009   Updated: 2 Oct 2009   Views: 7,051   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
I've been doing a lot of mult-threading work, recently, using the standard Thead class, the Worker Queue, and the new PLINQ (Parallel LINQ). The problem with most of the built-in generic collections (Queue, List, Dictionary, etc), is that they are not thread safe.

Debug Tips

LINQ to SQL Tips and Tricks [Technical Blog]
Posted: 1 Sep 2009   Updated: 1 Sep 2009   Views: 6,138   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
There are many little tips and tricks for LINQ to SQL which can make our lives easier, or improve the speed and efficiency of the generated code. Below are several tips and tricks I have found during my time as a LINQ developer. *Note: Some of these tips are for querying directly from the table.

Uncategorised Technical Blogs

Returning a Single Element With LINQ First and LINQ Single [Technical Blog]
Posted: 1 May 2009   Updated: 1 May 2009   Views: 13,238   Rating: 1.00/5    Votes: 3   Popularity: 0.48
Licence: Not specified      Bookmarked: 2   Downloaded: 0
Sometimes you have a list, and you need to return a single element from the list. There are several ways to get the element to return. Below are two ways using LINQ with Lambda expressions.Consider the following class: 1: public class Person 2: { 3: public strin
Using LINQ to SQL with SQL Server Compact [Technical Blog]
Posted: 14 May 2009   Updated: 14 May 2009   Views: 9,201   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: Not specified      Bookmarked: 2   Downloaded: 0
In thisarticle, I will cover how to access data in SQL Server Compactdatabases (.sdf file) using new development technologies such as LINQ.LINQ is the new initiative of Microsoft to support Object-RelationalMapping concepts and design patterns. LINQ provides a full type-safetyand compile-time
How to Use LINQ to Get a Count of Duplicates in a List [Technical Blog]
Posted: 2 Jun 2009   Updated: 2 Jun 2009   Views: 13,543   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: Not specified      Bookmarked: 2   Downloaded: 0
Often we have to get a count of duplicate items in a list. An easy way to do this is to group the list on the property we want to count, then use LINQ's GroupBy's Count feature. Below is a quick example using an employee list.  private static void Main() {     List empLi
Returning a Single Element With LINQ First and LINQ Single [Technical Blog]
Posted: 2 Jun 2009   Updated: 2 Jun 2009   Views: 8,093   Rating: 1.20/5    Votes: 2   Popularity: 0.36
Licence: Not specified      Bookmarked: 1   Downloaded: 0
Sometimes you have a list, and you need to return a single element from the list. There are several ways to get the element to return. Below are two ways using LINQ with Lambda expressions.Consider the following class: 1: public class Person 2: { 3: public strin
GroupBy Multiple Values in LINQ [Technical Blog]
Posted: 2 Jun 2009   Updated: 2 Jun 2009   Views: 10,017   Rating: 1.00/5    Votes: 3   Popularity: 0.48
Licence: Not specified      Bookmarked: 2   Downloaded: 0
Here's a simple example to show you how to GroupBy Multiple Valuesusing LINQ. In this example, I am grouping by Age and Sex to find thecount of people who have the same age and sex.C#public partial class LINQ : System.Web.UI.Page{    protected void Page_Load(object sender, EventAr
Thread Safe Generic Queue Class [Technical Blog]
Posted: 11 Aug 2009   Updated: 11 Aug 2009   Views: 23,119   Rating: 4.86/5    Votes: 9   Popularity: 4.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 0
I've been doing a lot of mult-threading work, recently, using the standard Thead class, the Worker Queue, and the new PLINQ (Parallel LINQ). The problem with most of the built-in generic collections (Queue, List, Dictionary, etc), is that they are not thread safe.I created a library of
No tips have been posted.

merlin981
Software Developer (Senior)
United States United States
Member
No Biography provided


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid