C# Class DRMFSS.Shared.StringResourcesDALC

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

Méthodes publiques

Méthode Description
Dispose ( ) : void
StringResourcesDALC ( string resourceType ) : System

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

Private Methods

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

StringResourcesDALC() public méthode

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.
Résultat System