Database query results as much as wiring solution that has been closed

Database query results as much as wiring solution that has been closed


Basically, the online database will remain open state, until the results of the query are used.

First, if an online database after the close, still want to use the results of the query, you can use ToList The query result caching.

Second, the object usually only be processed once.

In other words, when the query result is not cached, and after more than secondary treatment must be Multiple Active Result Sets open, capable party transaction data from multiple batches on a single connection, but not the MARS multiple jobs synchronization mechanism.

Reference data:

[1]Frequently Asked Questions
http://msdn.microsoft.com/en-us/library/bb386929(v=vs.110).aspx

[2]Multiple Active Result Sets (MARS)
http://msdn.microsoft.com/en-us/library/cfa084cz(v=vs.110).aspx

[3]What is late binding?
http://blogs.msdn.com/b/davidklinems/archive/2006/11/27/what-is-late-binding.aspx

Original: Big Box  database query results as much as wiring solution that has been closed


Guess you like

Origin www.cnblogs.com/petewell/p/11490163.html