Monthly Archives: February 2009

>Simplest table and query

> We made a head start to Linq skipping its basics and gave a sample from Entity Framework. Both Linq and Entity Framework are huge and much more capable than that sample could show. Linq can be done against any … Continue reading

Posted in Uncategorized | Leave a comment

>What if the backend wasn’t VFP

> Linq comes in various flavors like Linq to objects, Linq to XML, Linq to dataset, Linq to SQL (L2S), Linq to entities (L2E). When it is relational data Linq to Dataset, L2S and L2E are the ones we need … Continue reading

Posted in Uncategorized | Leave a comment

>Linq is fun – continued, part 2

> Here is the code: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VFPLinq {     class Program     {         static void Main(string[] args)         {             Testdata td = new Testdata();             TestdataTableAdapters.CustomerTableAdapter daCus =                 new … Continue reading

Posted in Uncategorized | Leave a comment

>Linq is Fun – continued

> OK since the video has failed let’s publish photos and explain. Start Visual studio (or express),Select C# Console application for a new project and name it say “VFPLinq”. Right click, project in solution explorer (bold) and select add\add new … Continue reading

Posted in Uncategorized | Leave a comment

>Linq is fun

> LINQ is short for “Language INtegrated Query”-  and it is fun.  When you say “Query” to a VFP developer she/he immediately visualizes a sequence like “select … from … where …” or SQL in other words. Besides SQL, VFP … Continue reading

Posted in Uncategorized | Leave a comment

>Some more C# 3.0 features

> In VFP we have eventhandler and bindevents that does binding of methods to the methods of an object we define.  Likewise in C# there are delegates. Delegates are types (remember classes and structs are called types – delegate is … Continue reading

Posted in Uncategorized | Leave a comment

>A bit generic

> C# 2.0 introduced a series of new features and 3.0 added a bunch of others that together make up the infrastructure needed for Linq. We start to explore them now. You already learned that C# is a strongly typed … Continue reading

Posted in Uncategorized | Leave a comment