DataTable vs EntityClass and Stored Procedures

Posts   
 
    
normanlc
User
Posts: 62
Joined: 10-Jan-2007
# Posted on: 16-Dec-2008 19:50:26   

Why is it when you call a stored procedure LLBLGen returns a DataTable rather than a collection of EntityClasses?

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 16-Dec-2008 21:55:35   

Because without parsing the SP we have no knowledge of whether it will return the correct information needed to populate a set of entities.

However, you can use the results of SP call to populate a projection of Entity data. See the documentation here

Matt