Can LLBLGEN return a dictionary-like object of the data in a database?

85 Views Asked by At

Can LLBLGEN return a dictionary, where each key is the primary key a row, and each value is an object representing the data of a row. For example

var customers = new EntityCollection<CustomerWebSalesSummaryEntity>();
            using (var adapter = new DataAccessAdapter(config.ProductionConnectionString))
            {

                adapter.FetchEntityCollection(customers, null);
            }

My understanding is that customers is a list. I would like it to be a dictionary, where each key is the primary key of a customer row, and each value is an object representing the data of a customer row. I know that I can convert the list to a dictionary, but I was wondering if LLBLGEN had the option of returning one from the outset.

0

There are 0 best solutions below