CommandBehavior

Topics: Data Access Application Block
May 9, 2007 at 11:21 AM
Hi Everyone!

As I understand, a ExecuteReader with CommandBehavior.SingleResult is the fastest/best way to retrieve data using a reader. Is there any means that this behavior can be applied when using EntLib. I know that by default EntLib specifies the CommandBehavior.CloseConnection for us (or im wrong?), but I havent find the means to specify CommandBehavior's.

Thanks in advance.
May 9, 2007 at 2:06 PM
The DAAB doesn't provide a way for you to specify CommandBehavior. It is either CloseConnection when not within a transaction and Default when within a transaction.

Regards,

Dave

__________________________________

David Hayden
Microsoft MVP C#