C# Класс Illusion.TypeMappingConfiguration

Class to specify settings for configuring type mappings by the ViewLocator or ViewModelLocator
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultSubNamespaceForViewModels string
DefaultSubNamespaceForViews string
IncludeViewSuffixInViewModelNames bool
NameFormat string
UseNameSuffixesInMappings bool
ViewModelSuffix string
ViewSuffixList List

Описание свойств

DefaultSubNamespaceForViewModels публичное свойство

The default subnamespace for ViewModels. Used for creating default subnamespace mappings. Defaults to "ViewModels".
public string DefaultSubNamespaceForViewModels
Результат string

DefaultSubNamespaceForViews публичное свойство

The default subnamespace for Views. Used for creating default subnamespace mappings. Defaults to "Views".
public string DefaultSubNamespaceForViews
Результат string

IncludeViewSuffixInViewModelNames публичное свойство

Flag to indicate if ViewModel names should include View suffixes (i.e. CustomerPageViewModel vs. CustomerViewModel)
public bool IncludeViewSuffixInViewModelNames
Результат bool

NameFormat публичное свойство

The format string used to compose the name of a type from base name and name suffix
public string NameFormat
Результат string

UseNameSuffixesInMappings публичное свойство

Flag to indicate whether or not the name of the Type should be transformed when adding a type mapping. Defaults to true.
public bool UseNameSuffixesInMappings
Результат bool

ViewModelSuffix публичное свойство

The name suffix for ViewModels. Applies only when UseNameSuffixesInMappings = true. The default is "ViewModel".
public string ViewModelSuffix
Результат string

ViewSuffixList публичное свойство

List of View suffixes for which default type mappings should be created. Applies only when UseNameSuffixesInMappings = true. Default values are "View", "Page"
public List ViewSuffixList
Результат List