The application uses the static Current property to access the actual configuration settings object. By default it reads the configuration settings from web.config (at runtime). You can override this behavior by creating your own configuration object and assigning it to the DbResourceConfiguration.Current property.
public class DbResourceConfiguration : object
Member | Description | |
---|---|---|
Constructor | Base constructor that doesn't do anything to the default values. | |
Current | A global instance of the current configuration. By default this instance reads its configuration values from web.config at runtime, but it can be overridden to assign specific values or completely replace this object. | |
ClearResourceCache | This static method clears all resources from the loaded Resource Providers and forces them to be reloaded the next time they are requested. public static void ClearResourceCache();
|
|
ReadConfigurationSection | Reads the DbResourceProvider Configuration Section and assigns the values to the properties of this class public bool ReadConfigurationSection();
|
|
ReadDesignTimeConfiguration | Handle design time access to the configuration settings - used for the DbDesignTimeResourceProvider - when loaded we re-read the settings public bool ReadDesignTimeConfiguration(IServiceProvider serviceProvider);
|
|
AddMissingResources | Determines whether any resources that are not found are automatically added to the resource file. | |
ConnectionString | Database connection string to the resource data. | |
DesignTimeVirtualPath | The virtual path for the Web application. This value is used at design time. | |
LocalizationFormWebPath | Determines the location of the Localization form in a Web relative path. This form is popped up when clicking on Edit Resources in the DbResourceControl | |
ProjectType | Determines how what type of project we are working with | |
ResourceTableName | Database table name used in the database | |
ShowControlIcons | Determines whether page controls show icons when a DbResourceControl is active. Note requires that ShowLocalizationControlOptions is true as well. | |
ShowLocalizationControlOptions | Determines whether the DbResourceControl shows its localization options on the page. | |
StronglyTypedGlobalResource | Path and Name space of an optionally generated strongly typed resource which is created when exporting to ResX resources. | |
UseVsNetResourceNaming | Determines whether generated Resource names use the same syntax as VS.Net uses. Defaults to false, which uses simple control name syntax (no ResourceX value) if possible. The dfeault value is shown without a number and numbers are only used on duplication. |