C# Class Illusion.TypeMappingConfiguration

Class to specify settings for configuring type mappings by the ViewLocator or ViewModelLocator
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
DefaultSubNamespaceForViewModels string
DefaultSubNamespaceForViews string
IncludeViewSuffixInViewModelNames bool
NameFormat string
UseNameSuffixesInMappings bool
ViewModelSuffix string
ViewSuffixList List

Property Details

DefaultSubNamespaceForViewModels public property

The default subnamespace for ViewModels. Used for creating default subnamespace mappings. Defaults to "ViewModels".
public string DefaultSubNamespaceForViewModels
return string

DefaultSubNamespaceForViews public property

The default subnamespace for Views. Used for creating default subnamespace mappings. Defaults to "Views".
public string DefaultSubNamespaceForViews
return string

IncludeViewSuffixInViewModelNames public property

Flag to indicate if ViewModel names should include View suffixes (i.e. CustomerPageViewModel vs. CustomerViewModel)
public bool IncludeViewSuffixInViewModelNames
return bool

NameFormat public property

The format string used to compose the name of a type from base name and name suffix
public string NameFormat
return string

UseNameSuffixesInMappings public property

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
return bool

ViewModelSuffix public property

The name suffix for ViewModels. Applies only when UseNameSuffixesInMappings = true. The default is "ViewModel".
public string ViewModelSuffix
return string

ViewSuffixList public property

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
return List