LINQ can be used with SQL Azure in the same way it is used with SQL Server. We are going to use the School database again. So to see how we can use SQL Azure with LINQ.
using System;using System.Linq;namespace LINQSQLAzure{ class Program { static void Main(string[] args) { DataClasses1DataContext context = new DataClasses1DataContext(); var result = from r in context.Persons select r; foreach (var r in result) { Console.WriteLine(r.LastName + " " + r.FirstName); } Console.ReadKey(true); } }}Expected output, In this article, I explained LINQ with SQL Azure.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: