wwBusiness.CachedDataAdapter

Cached DataAdapter object. This object is cached the first time a Save() call is made - if multiple Save() occur only one trip is made to the server to retrieve Schema information.

You can also use this instance to preload the DataAdapter with custom SQL Statements that you want to use for udpates. You can override the LoadDataAdapterCommands() method to assign this value.

Note: You can cache an adapter here but make sure you don't cache and assign an adapter globally (such as through static properties. This does not work due to the fact that multiple threads could be accessing the same command objects at the same time resulting in odd and difficult to track failures. This cached instance should be cached only at the instance level.

public IDbDataAdapter CachedDataAdapter

See also:

Class wwBusiness

© West Wind Technologies, 1996-2018 • Updated: 05/04/05
Comment or report problem with topic