On Thu, Nov 6, 2008 at 11:27 AM, MB Software Solutions General Account
> Tell me again why they couldn't make it easy to link the datasets to the
> objects like Foxpro made it easy??????
------------------------------------------------------------------
Datasets were the first attempt in .Net 1.3, but not good enough.
Objects that became containers of containers work better and are
easily morphed to XML when needed. Think of 2.0 and newer.
This is pretty straight forward. I see this as code that will run in
the middle and pass back the List<T>
List<Contacts> contacts = Contacts.SampleData(); // pull of data no param
var q = from c in contacts
where c.DateOfBirth.AddYears(35) > DateTime.Now
orderby c.DateOfBirth descending
select c.FirstName + " " + c.LastName +
" b." + c.DateOfBirth.ToString("dd-MMM-yyyy").ToList();
return q; // return any contact older than 35.
But on the front end you could requery the list again and perhaps set
an orderby on the name?
--
Stephen Russell
Sr. Production Systems Programmer
Mimeo.com
Memphis TN
901.246-0159
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.