Developer code samples

Contributions
Requests
Favorites
Sort by:

One my friends wanted to call a WCF Service from a Stored Procedure in Microsoft SQL Server 2012. So this is how you can do it.Before starting off with coding, there are some things that we all need to know and understand well.When wring functionalities such as Stored Procedures,
We use both Thread.Sleep() and Task.Delay() to suspend the execution of a program for some given time. But are we actually suspending the execution? What is the difference between these two? How to abort from a Sleeping thread or from a
delaying task. Those are some of the ques
NServiceBus is one of the widely used service bus for .NET.  

In this wiki let’s see how we can write a application where some application publishes events and another application consumes those.
Let's start off with the application by creating a blank solution named “NServic
HTML5 has introduced two mechanisms for storing structured data on the client side, similar to HTTP session cookies. HTTP cookies have some drawbacks such as limited to store 4 KB of data etc. Web storage is considered as one
of the most rising data storage methods is HT
Have you ever come across a situation where you want to have multiple login pages with Forms Authentication.  Forms Authentication directly supports one login page, but there is a work around. Today we will see how to achieve
this.For an example let’s say you want two lo
In this example let’s see how we can write data in a excel file into a database using a

DataSet and
SqlBulkCopy.

The concept here is fairly simple. First I am going to load data in the excel file into a

DataSet and then for each tables in the
DataSet, I am going to
I am pretty you all must have seen these delegates when writing code. IntelliSense shows methods that accepts Actions, Func<TResult> and some accepts Predicate<T>. So what are these? Let’s find out.

Let’s go by a simple example. I have following “Employee” class and it has a h

It is extremely important that any application where the users are from different geographic locations handle date and time in a meaningful way. For an example, let’s say the application has users ranging from United States to Australia and right now, a user from Sydney, Austra
By default
Task doesn’t report its progress as a
BackgroundWorker does. But that doesn’t mean we can’t get a progress of a Task. There is a new interface which was introduced with .NET framework 4.5 which is
IProgress<T>. This interface exposes a Repo
In Entity Framework Navigation properties are used to create associations/relationships among entities. Today I am going to write about the three ways which can be used to load related entities data along with the primary entity. I will
not be covering the basics of Entity Fram
1 - 10 of 31 Items   
0 results
No sample requests were found.
No favorites have been added.