If you are using LinQ as ORM and getting your stuff done in a simple object-oriented way, that's nice! Have you seen some one-liner magic code that doesn't look very familiar to our usual C# code? Those are lambda expressions, an excellent way to get things done simply and easily. In today's tutorial, We will discuss a basic understanding of C# lambda expression, which plays a … [Read more...] about How To Work With LinQ C# Lambda Expression
In my earlier articles, I described working with Linq on an SQL server database, which is 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, in … [Read more...] about Apply LinQ To XML Data Using C#
In this tutorial, my goal is to assist you through the development of a very simple web application that utilizes the Asp.net MVC framework(more specifically, version 3.0), LINQ to SQL, and Razor template engine so that you can have a 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 … [Read more...] about Asp.NET MVC3 And LinQ Based Sample Web Application
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 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 you need to maintain consistency between data relations. Simple data retrieval, insertion, deletion, update, etc., can be done in a straightforward way, in some cases just by calling some functions on the LinQ objects. Several … [Read more...] about LinQ Query With Like Operator