Introduction Configuration files are central place to configure your web or windows applications. The web.config file is used for configuring the web applications and app.config for windows applications. The ASP.NET Application comes with web.config file with default configuration sections and you can easily manage them at the intialstage of the project development. As soon as your project grows...
LINQ Architecture
Introduction Language-Integrated Query (LINQ) is a new feature introduced in visual studio 2008 and .NET Framework 3.5. Developers can write the queries in the code to retrieve the data from various types of data sources like SQL,XML and XQuery. Earlier developers has to learn the syntax for writing queries for each data source. LINQ simplifies by offering a model to work with the data across...
Lambda Expressions in C# 3.0
Lambda expressions is one of the features introduced in the C# 3.0. Lambda expressions help you to ease the burden of writing verbose Anonymous Methods. I will explain the where to use the Anonymous methods first then we see the example on lambda expressions Anonymous Methods Anonymous Methods is the feature in C# 2.0. The idea behind writing the anonymous methods is to write methods inline to...
Extension Methods Feature in C# 3.0
It is one of the new feature introduced in C# 3.0 “As the name implies, extension methods extend existing .NET types with new methods.†Here i am going to extend the String type to write an extension method. Example Adding a IsValidEmailAddress method onto an instance of string class: namespace Extensions { class TestProgram { static void Main(string[]...
Object and Collection Initializers Feature in C# 3.0
C# 3.0 introduced the another interesting feature Object and Collection initialization expressions. Object Intialization Expressions allows you to initialize an object without invoking the constructor and setting its properties. If you take Employee Class as an Example: public class Employee { private int iEmpId; private string strFirstName; private string strLastName; public int ID{ get{...
Automatically Implemented Properties Feature in C# 3.0
Introduction of Automatic Properties in C# 3.0 make property declaration more concise. It saves some of your time in typing a lot of code. Example: class Employee { public string FirstName { get; set; } } Benefit of using Automatic Properties We have been creating properties in so many projects and notice that we are writing so many lines of code just for creating a simple property. Example:...
Visual Studio Team System 2008 Team Suite Overview
Microsoft Visual studio team system 2008 is an integrated Application development and management solution which contains tools, processes and guidance to help everyone on the team to improve their skills and work more effectively together. VS 2008 Team Suite provides set of tools for architecture, design, development, database development,and testing of applications.Team members can...
Test driven development using C#
This post explains how TDD can be implemented in C# using NUNIT. You can read the Introduction TDD to get an idea on TDD. Nunit is a open source framework to for .NET which helps you to automate the unit testing. Nunit can downloaded from the Nunit site. current version is 2.5. Nunit provides two utilities for running the automated tests nunit-gui.exe – GUI tool nunit-console.exe – Command...
Introduction to Test driven development
Test driven development(TDD) is a agile methodology technique to develop the software applications. It is one of the basic tenets of eXtreme Programming(XP). In Test driven development life cycle unit-test cases written before the code it self. These test cases contains assertions that can be either true or false. Unique feature of TDD is developer can focus on the requirements before...
Joins in SQL server
Fundamentals of joins in SQL server By using joins, we can get the data from two or more tables based on logical condition between the tables. The two tables in a query related by specifying a column from each table used in the join. specifying a logical operator to be used in the comparing the columns. The following are joins by classification Inner join Outer join Left outer join Right outer...