Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is LINQ the 'VFP-inspired' addition to .NET?
Message
From
15/09/2005 21:22:00
 
 
To
15/09/2005 19:05:37
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01049627
Message ID:
01050130
Views:
19
Hola, Juan.

>>var q =
>> from c in db.Customers
>> where c.city == 'London'
>> Select(c => c.CompanyName);
>>
>>ObjectDumper.WriteLine(q)

>>>>In this case, it would be an array or ArrayList.
>not sure what it is yet, it might be, q is processed by the ObjectDumper, a piece of code written for generating an output like the old DOS SQL text output.

What you can hande with this syntax is anything that implements IEnumerable, which means any strongly typed array/collection. Indeed, generics (appeared in .NET 2) set the stage for this.

>>>>But there is something pretty different here, and this is that the equivalent of a Visual FoxPro cursor is not a relational thing anymore, but an object, and you can even get a hierarchical object (a list of lists), inheriting from a previously defined class or (new in C# 3), defined in place as an anonymous type (something very handy).
>
>Yes, but for those of us who use oop to see their data shouldn't be a problem ;)

Absolutely. Indeed, the languages would end up getting a lot of the functionality available today in ORM tools, although with a more (hopefully) CLR-integrated and efficient approach. And fully supported by the IDE also (VS.NET, but I guess that 3rd parties like SharpDevelop wouldn't have a very hard time supporting most of these features).

>>>>There are more simmilarities to Delphi (a language that a guy called Anders something desinged) that to Visual FoxPro. The important thing for me is that it resolves part of the Visual FoxPro domain space pretty well (or at least it seems by now).
>
>I know nothing about Delphi, but the code I just saw in a second session a few moments ago couldn't be more similar to the code I write in foxpro, I mean, they are doing something like this (roughly presented):
>
>Open transaction
>query data
>massage data in ways of a business object (setting optimistic or pesimistic updates)
>submit changes
>end transaction
>
>This looks familiar, doesn't it?

It does. Not necesarilly in this order, but it is what any atabase app does, not only VFP. I guess that by now everybody knows I am a VFP fan, but I can't go as far as to say that VFP is the only tool that could do this things.

Best regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform