Show / Hide Table of Contents

Class ModelAssemblyAttribute

Marks an assembly as exporting model elements.

Inheritance
System.Object
System.Attribute
ModelAssemblyAttribute
EntityAssemblyAttribute
PermissionAssemblyAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Model.AttributedModel
Assembly: Kephas.Model.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class ModelAssemblyAttribute : Attribute

Constructors

| Improve this Doc View Source

ModelAssemblyAttribute()

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

DefaultClassifierKindAttribute

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.

| Improve this Doc View Source

ModelNamespaces

Gets the model namespaces.

Declaration
public string[] ModelNamespaces { get; }
Property Value
Type Description
System.String[]

The model namespaces.

| Improve this Doc View Source

ModelTypes

Gets the model types.

Declaration
public Type[] ModelTypes { get; }
Property Value
Type Description
System.Type[]

The model types.

Methods

| Improve this Doc View Source

GetModelAssemblyNamespaceFilter(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.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX