May be a dumb question but I'm full of them...
What are the advantages of using Linq to LLBLGen Pro directly vs calling up a collection of entities, converting it to an array and using standard Linq to Object? (Keeping in mind that
the collection will likely already be filtered.)
And... what magic is going on behind the scenes to populate the LinqMetaData sequences?
I'm concerned about performance if I touch a data entity with millions of entries.
Both of these seem to work...
//=================================================
// Linq to Object test... start
// ... Cast Collection as Array
BookCollection books = new BookCollection();
books.GetMulti(null); // not recommended for large data table
BookEntity[] _books = books.ToArray();
var query =
from book in _books
select new { book.Title, book.Isbn, book.Price};
//Linq to Object test... end
//Linq to LLBL Gen Pro... start
LinqMetaData metaData = new LinqMetaData();
var q = from b in metaData.Book
select new { b.Title, b.Isbn, b.Price };
//Linq to LLBL Gen Pro... end
//Win Display... (toggle as needed)
dataGridView1.DataSource = q.ToList();
//===============================================
Thanks All,
Ed