skip to main
|
skip to sidebar
Code snippets for .Net technology
Thursday, February 25, 2010
Appling Linq on ADO.net
// Marking sql-like queries on datatable with linq
EnumerableRowCollection
query =
from employee in employees.AsEnumerable()
where employee.Field
("salary") > 20
orderby employee.Field
("salary")
select employee;
foreach (DataRow emp in query)
{
Response.Write(emp.Field
("LastName") + ": ");
Response.Write(emp.Field
("salary") + "
");
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Snippets
.Net
(1)
3-Tier architecture in .Net
(1)
ADO.Net
(2)
Appling Linq on ADO.net
(1)
ASP.Net
(6)
C#.Net
(9)
Check password strength in javascipt
(1)
CheckedListBox
(1)
Convert Text into Title Case/Sentance Case
(1)
Copy Folder+C#
(1)
DateTime + File Names
(1)
Display data in GridView from Excel Sheet
(1)
Editable DatagridView linked with database
(1)
Encryption
(1)
Export to Excel with XSLT
(1)
Fragment Caching in ASP.NET
(1)
FTP File Upload using FtpWebRequest in .Net C#
(1)
FTP Functions
(1)
Get ASCII
(1)
GetDateFormat Method
(1)
How to Convert DataGridView into HTML Table
(1)
How to use the radiobutton in WPF and XAML.
(1)
How to write XML File from the Object Collection
(1)
Javascript
(1)
Mail Merge in C#
(1)
Recursive Search for Folders and Files
(1)
Recursive_Files
(1)
Remove Cache in ASP.net
(1)
Render DataTable to Excel
(1)
RowFilter
(1)
Sending Email
(1)
Split String in C#
(1)
System.IO
(5)
WinForms
(2)
Word document C#
(1)
Write CSV from DataReader
(1)
Write Excel in C#
(1)
ZipFile
(1)
FEEDJIT Live Traffic Feed
Feedjit Live Blog Stats
My Blog List
Interview Questions on .Net
Difference between Rollup and Cube
14 years ago
Striking with .Net technology
Scrum Methodology
14 years ago
Striking with ASP.Net
Microsoft SQL Server 2005/2008
Subscribe To
Posts
Atom
Posts
Comments
Atom
Comments
Search This Blog
Followers
Blog Archive
►
2011
(10)
►
July
(1)
►
June
(1)
►
April
(1)
►
March
(4)
►
February
(3)
▼
2010
(14)
►
September
(2)
►
August
(7)
►
May
(1)
►
March
(1)
▼
February
(3)
Appling Linq on ADO.net
Editable DatagridView linked with database
Convert Text into Title Case/Sentance Case
►
2009
(43)
►
October
(2)
►
September
(2)
►
June
(8)
►
May
(31)
About Me
kalit
Over 14 years of technical, requirements and project management experience with large-scale, high-availability networks and client, server applications involving projects of substantial duration, complexity and ambiguity.
View my complete profile
No comments:
Post a Comment