Skip to main content

DevCares presentation on Visual Studio Orcas and Linq

Today I presented at the Microsoft DevCares event at the InfoMart in Dallas. As promised I have made available the powerpoints and the VS solutions that I used for the demo.

Here are the contents for Microsoft DevCares sponsored by Tekfokus:

1) Lap around Visual Studio Orcas Powerpoint
2) Linq and Data Access in Visual Studio Orcas Powerpoint
3) solution containing demos for ASP.NET
4) solution containing demos for LINQ

These documents can be found in this direcotry
http://fluckiger.org/joeblogpics/2007-05-25_devCares/

It was a great presentation today at DevCares and a good turnout with 31 developers in attendance. It is amazing how many new great features are being released in this version of Visual Studio.

Note you will need to make one modification to the LINQ solution demo, you will need to change the SQL connection string to (insert your path):
-pass in the filename using a "user instance" connection in your sql connection string like so:
"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\joeDev\JoeOrcasTest\Data\NORTHWND.MDF;Integrated Security=True;User Instance=True"


Here are some of the best sessions from MIX available online for free:
Anders Hejslberg on Linq
ASP.NET
Scott Guthrie keynote at Mix (you can skip the last 10 mins)

Scott Guthrie on Silverlight (channel 9)




Recommended Reading:

MSDN article on LINQ

Additional Code examples

class Program
{
//--This example demonstrates that Lambda expressions are just an abbreviated syntax for anonmymous delegates

public delegate bool MyDelegate(Customer c);

static void Main(string[] args)
{
Customer cust = new Customer { Name = "Fred"};

//--old .NET 2.0 way, handle with an anonymous delegate
MyDelegate del = new MyDelegate(delegate(Customer c)
{
return c.Name == "Fred";
});
Console.WriteLine("old way:" + del.Invoke(cust));


//--new 3.5 way, handle with elegant Lamba expression
MyDelegate del2 = new MyDelegate(c => c.Name == "Fred");
Console.WriteLine("new way:" + del2.Invoke(cust));


Console.ReadLine();
}
}

public class Customer
{
public string Name { get; set; }
public int ZipCode { get; set; }
}




note: have to perform a fix to get the CSS properties window to work in ASP.NET. The fix, which consists of simply copying a certain file into the right directory can be found here:
http://forums.asp.net/p/1108360/1701353.aspx#1701353




Guess what, good news you can take advantage of AJAX in Visual Studio 2005 using Ajax extentions for VS 2005. This includes the update panel control which I demoed and is very easy to use (drag and drop easy).




note: I have installed Visual Studio Orcas on my primary work laptop and so far I haven't had any problems.

Comments

Popular posts from this blog

Unleashing Tableau’s Semantic Layer with AI Agents

⚡ TL;DR I helped built a tool that lets you query Tableau’s semantic layer  using natural language and AI. By integrating a LangChain agent with Tableau’s VizQL Data Service (VDS), we can repurpose Tableau’s trusted data model for conversational analytics . This means you can ask questions in plain English and get answers backed by the same definitions and security that your Tableau dashboards use. In this post, I’ll introduce this open-source agentic tool ( tableau_langchain ), why it’s transformative for analytics, and how it works under the hood. Why Connect LangChain Agents to Tableau? As a user of Tableau, I’ve seen how powerful Tableau’s semantic layer is. It encapsulates our organization’s business logic: things like predefined metrics, calculations, data relationships, and even row-level security rules. Traditionally, that semantic layer is only accessible through Tableau’s interface – you drag and drop fields to build a viz, and Tableau generates the query for you. Rece...

How to Create and Run Tableau Bridge on Linux Containers

Tableau Bridge is now availble on Linux Containers. Yay! Now what does this mean and how do I build and run Linux Containers? We will discuss the advantages of running Bridge on Linux Containers the steps to build them, and finally, we will provide some automation script ideas for monitoring and scaling Linux Bridge agents. Tableau Bridge Today Until recently, Tableau Bridge was only available as a Windows application running on a Windows VM. It supported only one bridge agent per Virtual or Physical Machine. Advantages of Bridge in Containers Better Hardware Utilization: Linux containers are more efficient than Windows VMs, requiring only about 1/50th of the disk space. Ability to Spin Up Multiple Bridge Agents: With Linux Containers, it becomes easier to spin up multiple bridge agents on a single machine, improving scalability and resource utilization. Infrastructure Automation: Linux Containers enable easier automation of provisioning bridge agents and upgrading Tableau Bridge, the...

RAM Disks do not speed up Visual Studio

  The limiting factor for Visual Studio is disk IO. I got a tip to speed up Visual Studio from Channel 9 by creating a RAM disk which sounded like a great idea. However, when I ran a thorough set of tests, I found that the performance difference between the Ram disk and the hard disk were not appreciably different. This was a big surprise since RAM is 240,000 times faster than disk (see my previous blog post). But the reason is because Visual Studio and Vista do a lot of caching. So compile times for the same project in RAM disk and on hard disk were pretty similar. I also tested the time it took to search the entire solution for a word, and times to open a solution. There was no discernable difference!   If you still want to try it out and create your own RAM disk, you can download a simple RAMDISK.EXE utility to create a RAM disk in just a few minutes. What is a RAM Disk ?   Ramdisk is a virtual drive created in RAM.   Performance Analysis Creating f...