Ads by Lake Quincy Media
| Next Tip?
Home » Archive

Articles in the Asp.net Category

Asp.net »

[10 Feb 2009 | No Comment | 255 views]

LINQ Querry : A Step Ahead Series
History:
The article is related to previous posts :
1. Anonymous Types in LINQ: A Step Ahead Series
2. How to Test Anonymous Type Equality – LINQ: A Step Ahead Series
Introduction:
LINQ – Language Integreted Query is repeadily used in these days. The presented article is elaborate the idea “How to describe a LINQ Query”.
Simply, a query is an expression that retrieves data from a data source.
Scope:
The scope of the presented article is upto its title and projected scenarios.

Basics
LINQ Actions
Some basic example
Creating a LINQ project using Visual …

Asp.net »

[9 Feb 2009 | No Comment | 275 views]

How to Test Anonymous Type Equality – LINQ: A Step Ahead Series
First of all Anonymous Type Equality : If two or more anonymous types have same order, number and member declaratory type amd name then the same anonymous type is defined. So, its permissible to use the referencial equality operator on these types.
Now lets see the other face of the coin means of any of order, number and member declarator type and name is different then different anonymous type is defined for each. Then it throw compiler error while testing …

Asp.net, CSharp, Tutorial »

[6 Feb 2009 | No Comment | 352 views]

Introduction:
Programers of Visual Basic the keyword ‘var’ is confusing here as the type variants was used in Visual Basic.
Here, the keyword var tells to compiler emit a strong type based on t5e value of the operation on the right side.
Important:
Anonymous types can be used to initialize simple types like integers and strings.
Rules : Following are the some basic rules to use LINQ Anonymous Types.

Anonymous types can’t be null.
Must always have an initial assignment.
Can be used with Simple or complex types, but composite anonymous types require member declaration
example:
var mylist = …

Get Adobe Flash playerPlugin by wpburn.com wordpress themes