Developer code samples

Contributions
Requests
Favorites
Sort by:

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
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,
In Windows Store Apps there are variety of ways/methods to store your application data. Examples of such mechanisms would be Web Storage, IndexedDB etc. and even SkyDrive. Today I am going to write about my favorite data storage method in developing Windows Store Apps which is “S
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
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
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
Some time back when I was watching a presentation of a third party reporting product, I saw some nice animated charts. I wanted to create something similar to those charts and when I checked on SSRS, unfortunately what I wanted isn't possible
with SSRS. So I moved into S
This Article focuses on  how we can implement a WCF Data Service with Entity Framework Provider.

I have created an empty ASP.NET web application. Now let’s start by adding an ADO.NET Entity Data Model to the project.



It’s a common requirement where you want to authenticate the requests which the clients will make to your WCF services. And let's say that’s using some data which you have in your user table. In WCF, the default, when a user
name and password is used for authentication,
When using Entity Framework Code First approach, there are actually three ways to define foreign keys. In this post let’s explorer these different ways with some examples (Please note here I am not going to cover the basics of EF, assuming you have some knowledge in Entity Framew
1 - 10 of 22 Items   
0 results
No sample requests were found.
No favorites have been added.