Свойство | Тип | Описание | |
---|---|---|---|
InterfaceCaptureGroupName | string | ||
LocateForView | object>.Func | ||
LocateForViewType | object>.Func | ||
LocateTypeForViewType | Func |
||
NameTransformer | NameTransformer | ||
TransformName | Func |
Метод | Описание | |
---|---|---|
AddDefaultTypeMapping ( string viewSuffix = "View" ) : void |
Adds a default type mapping using the standard namespace mapping convention
|
|
AddNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void |
Adds a standard type mapping based on simple namespace mapping
|
|
AddSubNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void |
Adds a standard type mapping by substituting one subnamespace for another
|
|
AddTypeMapping ( string nsSourceReplaceRegEx, string nsSourceFilterRegEx, string nsTargetsRegEx, string viewSuffix = "View" ) : void |
Adds a standard type mapping based on namespace RegEx replace and filter patterns
|
|
ConfigureTypeMappings ( |
Specifies how type mappings are created, including default type mappings. Calling this method will clear all existing name transformation rules and create new default type mappings according to the configuration.
|
|
MakeInterface ( string typeName ) : string |
Makes a type name into an interface name.
|
Метод | Описание | |
---|---|---|
SetAllDefaults ( ) : void | ||
ViewModelLocator ( ) : System |
public static AddDefaultTypeMapping ( string viewSuffix = "View" ) : void | ||
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
Результат | void |
public static AddNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void | ||
nsSource | string | Namespace of source type |
nsTargets | string | Namespaces of target type as an array |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
Результат | void |
public static AddSubNamespaceMapping ( string nsSource, string nsTargets, string viewSuffix = "View" ) : void | ||
nsSource | string | Subnamespace of source type |
nsTargets | string | Subnamespaces of target type as an array |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
Результат | void |
public static AddTypeMapping ( string nsSourceReplaceRegEx, string nsSourceFilterRegEx, string nsTargetsRegEx, string viewSuffix = "View" ) : void | ||
nsSourceReplaceRegEx | string | RegEx replace pattern for source namespace |
nsSourceFilterRegEx | string | RegEx filter pattern for source namespace |
nsTargetsRegEx | string | Array of RegEx replace values for target namespaces |
viewSuffix | string | Suffix for type name. Should be "View" or synonym of "View". (Optional) |
Результат | void |
public static ConfigureTypeMappings ( |
||
config | An instance of TypeMappingConfiguration that provides the settings for configuration | |
Результат | void |
public static MakeInterface ( string typeName ) : string | ||
typeName | string | The part. |
Результат | string |
public static string InterfaceCaptureGroupName | ||
Результат | string |
public static Func LocateForView | ||
Результат | object>.Func |
public static Func |
||
Результат | object>.Func |
public static Func |
||
Результат | Func |
public static NameTransformer NameTransformer | ||
Результат | NameTransformer |