Class DbResourceReader

DbResourceReader is an IResourceReader for reading resources from a database. The ResourceReader is the actual Resource component that accesses the underlying datasource to retrieve the resource data.

This databased manager uses the DbResourceDataManager to query the database and retrieve a list of resources for a given baseName (ResourceSet) and Culture and returns that result as an IEnumerable list (via a HashTable). This process - other than the data access - results in the same structures as resources read from ResX files.

System.Object
  Westwind.Globalization.DbResourceReader
public class DbResourceReader : object, IResourceReader,
   IEnumerable,
   IDisposable

Class Members

MemberDescription

Constructor

Core constructor for DbResourceReader. This ctor is passed the name of the ResourceSet and a culture that is to be loaded.

Close

Closes the resource reader after releasing any resources associated with it

public sealed void Close()

Dispose

Releases all resources used by the object. Ultimately this is called by ResourceManager.ReleaseAllResources which calls on the ResourceSet and then down into the reader to close its resources.

This code cleans up the internally created dictionary which in turn comes from a Hashtable.

public sealed void Dispose()

GetEnumerator

public sealed IDictionaryEnumerator GetEnumerator()

Requirements

Namespace: Westwind.Globalization
Assembly: westwind.globalization.dll

© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic