Class ModelAssemblyAttribute
Marks an assembly as exporting model elements.
Inheritance
Inherited Members
Namespace: Kephas.Model.AttributedModel
Assembly: Kephas.Model.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class ModelAssemblyAttribute : AttributeConstructors
| Improve this Doc View SourceModelAssemblyAttribute()
Initializes a new instance of the ModelAssemblyAttribute class.
Declaration
public ModelAssemblyAttribute()Remarks
Using the default constructor indicates that all the types in the assembly should be considered model elements.
ModelAssemblyAttribute(String[])
Initializes a new instance of the ModelAssemblyAttribute class.
Declaration
public ModelAssemblyAttribute(params string[] modelNamespaces)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | modelNamespaces | The namespaces containing model elements. | 
Remarks
Using the namespaces constructor indicates that only the assembly types in the indicates namespaces should be considered model elements.
ModelAssemblyAttribute(Type[])
Initializes a new instance of the ModelAssemblyAttribute class.
Declaration
public ModelAssemblyAttribute(params Type[] modelTypes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type[] | modelTypes | The model types. | 
Remarks
Using the types constructor indicates that only the indicates assembly types should be considered model elements.
Properties
| Improve this Doc View SourceDefaultClassifierKindAttribute
Gets or sets the default classifier kind attribute for the provided namespaces and types.
Declaration
public ClassifierKindAttribute DefaultClassifierKindAttribute { get; protected set; }Property Value
| Type | Description | 
|---|---|
| ClassifierKindAttribute | The default classifier type. | 
ModelNamespaces
Gets the model namespaces.
Declaration
public string[] ModelNamespaces { get; }Property Value
| Type | Description | 
|---|---|
| System.String[] | The model namespaces. | 
ModelTypes
Gets the model types.
Declaration
public Type[] ModelTypes { get; }Property Value
| Type | Description | 
|---|---|
| System.Type[] | The model types. | 
Methods
| Improve this Doc View SourceGetModelAssemblyNamespaceFilter(IEnumerable<ModelAssemblyAttribute>)
Gets a filter for types' namespaces within the assembly.
Declaration
protected static Func<Type, bool> GetModelAssemblyNamespaceFilter(IEnumerable<ModelAssemblyAttribute> modelAssemblyAttributes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<ModelAssemblyAttribute> | modelAssemblyAttributes | The model assembly attributes. | 
Returns
| Type | Description | 
|---|---|
| System.Func<System.Type, System.Boolean> | The model assembly namespace filter. |