C# Class DRMFSS.Shared.StringResourcesDALC

Data access component for the StringResources table. This type is thread safe.
Inheritance: IDisposable
Mostrar archivo Open project: edgecomputing/cats-hub-module Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
StringResourcesDALC ( string resourceType ) : System

Constructs this instance of the data access component supplying a resource type for the instance.

Private Methods

Method Description
GetResourceByCultureAndKey ( CultureInfo culture, string resourceKey ) : string
GetResourceByCultureAndKeyInternal ( CultureInfo culture, string resourceKey ) : string

Uses an open database connection to recurse looking for the resource. Retrieves a resource entry based on the specified culture and resource key. The resource type is based on this instance of the StringResourceDALC as passed to the constructor. Resource fallback follows the same mechanism of the .NET ResourceManager. Ultimately falling back to the default resource specified in this class.

GetResourcesByCulture ( CultureInfo culture ) : ListDictionary

Method Details

Dispose() public method

public Dispose ( ) : void
return void

StringResourcesDALC() public method

Constructs this instance of the data access component supplying a resource type for the instance.
public StringResourcesDALC ( string resourceType ) : System
resourceType string The resource type.
return System