Class that handles generating strongly typed resources for global Web resource files. This feature is not supported in ASP.NET stock projects and doesn't support custom resource providers in WAP.
Westwind.Globalization.StronglyTypedResources
public class StronglyTypedResources : object
Class Members
Member | Description | |
---|---|---|
Constructor |
||
CreateClassFromAllDatabaseResources |
Creates strongly typed classes from all global resources in the current application from the active DbResourceManager. One class is created which contains each of the resource classes. Classnames are not necessarily named with Uses the default DbResourceConfiguration.Current settings for connecting to the database. public string CreateClassFromAllDatabaseResources(string Namespace,
string FileName,
IEnumerable |
|
CreateClassFromDatabaseResource |
Creates a strongly typed resource class for a ResoureSet from the DbResourceManager. Note: Uses the default ResourceProvider settings as set in the DbResourceConfiguration.Current property for opening the database and otherwise setting values. public string CreateClassFromDatabaseResource(string ResourceSetName, string Namespace, string Classname, string FileName) |
|
CreateClassFromFromAllGlobalResXResources |
Creates a class containing strongly typed resources of all resource keys in all global resource ResX files. A single class file with multiple classes is created. The extension of the output file determines whether VB or CS is generated public string CreateClassFromFromAllGlobalResXResources(string Namespace, string FileName) |
|
CreateClassFromResourceSet |
public string CreateClassFromResourceSet(ResourceSet resourceSet, string nameSpace, string classname, string fileName) |
|
CreateClassFromResXResource |
public string CreateClassFromResXResource(string ResXFile, string Namespace, string Classname, string FileName) |
|
CreateGlobalResxResourceDesignerFiles |
Creates a strongly typed resource class that uses the ASP.NET Resource Manager rather than using Resx .NET resources which basically results in duplicated resource sets loaded. Overwrites the generated. public void CreateGlobalResxResourceDesignerFiles(string Namespace, CodeGenerationLanguage lang) |
|
CreateResxDesignerClassesFromAllDatabaseResources |
Creates strongly typed classes from all global resources in the current application from the active DbResourceManager. One class is created which contains each of the resource classes. Classnames are not necessarily named with Uses the default DbResourceConfiguration.Current settings for connecting to the database. public string CreateResxDesignerClassesFromAllDatabaseResources(string ns,
string outputPath,
IEnumerable |
|
CreateResxDesignerClassFromResourceSet |
Creates a strongly typed resource from a ResourceSet object. The ResourceSet passed should always be the invariant resourceset that contains all the ResourceIds. Creates strongly typed keys for each of the keys/values. public string CreateResxDesignerClassFromResourceSet(string resourceSetName, string nameSpace, string classname, string fileName) |
|
CreateResxDesignerClassFromResxFile |
public void CreateResxDesignerClassFromResxFile(string resxFile, string resourceSetName, string namespaceName, bool vb) |
|
SafeVarName |
Creates a safe variable name public static string SafeVarName(string phrase) |
|
ErrorMessage |
An error message set on a failure result |
|
WebPhysicalPath |
The physical path for the Web application |
Requirements
Namespace: Westwind.GlobalizationAssembly: westwind.globalization.dll
© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic