ModuleAttribute.AutoModuleFor method (1 of 2)
Gets the module of a namespace: the namespace without its first part, which is usually the root namespace of the project, and without the last part when it is one of the NamespaceSuffixes, e.g. Northwind for MyApp.Northwind.Entities. What is left of a namespace with one part is the module itself, e.g. MyApp for MyApp.Forms.
public static string AutoModuleFor(string? @namespace)
| parameter | description |
|---|---|
| namespace | The namespace. |
See Also
- class ModuleAttribute
ModuleAttribute.AutoModuleFor method (2 of 2)
Gets the module that the automatically inferred keys of a type start with, e.g. the key of a form: the one of its ModuleAttribute, or of the row of its BasedOnRowAttribute, or else the one of its namespace, see AutoModuleFor.
public static string AutoModuleFor(Type type)
| parameter | description |
|---|---|
| type | The type for which to infer the module. |
Return Value
The inferred module, e.g. Northwind for MyApp.Northwind.Forms.CustomerForm.
See Also
- class ModuleAttribute