If you are using LinQ as ORM and getting your staffs done with simple object oriented way, that's nice! Have you seen some one liner magic code which don't look much familiar to our usual C# code? Those are lambda expressions, a cool way to get things done in simple and easy way. In today's tutorial We will discuss about basic understanding of C# lambda expression, which play a … [Read more...] about How To Work With LinQ C# Lambda Expression
linq
Apply LinQ To XML Data Using C#
On my earlier articles, I have described about working with linq on sql server database, which usually known as 'Linq To SQL'. Today I am going to show how linq can be applied on XML data along with c# code examples. This is known as 'Linq To XML'.I am assuming you are already familiar with basic Linq usage. If not, my suggestion will be to study the basics of Linq first. Here, … [Read more...] about Apply LinQ To XML Data Using C#
Asp.NET MVC3 And LinQ Based Sample Web Application
In this tutorial, my goal is to assist you through an very simple web application development that utilizes asp.net mvc framework(more specifically version 3.0), linq to sql, and razor template engine, so that you can have complete idea of developing a database driven application with these technologies. We will be using Asp.NET MVC 3 and .NET Framework 4 for this sample … [Read more...] about Asp.NET MVC3 And LinQ Based Sample Web Application
Using SQL JOIN Operation In LinQ/C#
Being LinQ an Object Relational Mapper, We can avoid writing sql query in many cases. Where its needed to be written even for simple purpose, we can achieve what we need just by calling linq provided methods with proper parameters.This facilitates to make the code more meaningful and less buggy. Join operations are done in sql for retrieve data from a complex relationship … [Read more...] about Using SQL JOIN Operation In LinQ/C#
LinQ Query With Like Operator
Linq To SQL makes a developer's life easy for performing various database operations. If the database design is stable, LinQ To SQL will do all the jobs for you for maintaining consistency between data relations. Simple data retrieval, insertion, deletion, update, etc can be done in a very easy way, in some cases just by calling some functions on the LinQ objects. There are a … [Read more...] about LinQ Query With Like Operator