Click or drag to resize

DependencyInjectionInfoAttribute Class

Attribute definition to define dependency injection information on a class which instances are injected into other objects (targets). A usage of this attribute can be for example a validator class which is injected at runtime into an entity object to be its validator object to use.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    SD.LLBLGen.Pro.ORMSupportClassesDependencyInjectionInfoAttribute

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class DependencyInjectionInfoAttribute : Attribute

The DependencyInjectionInfoAttribute type exposes the following members.

Constructors
  NameDescription
Public methodDependencyInjectionInfoAttribute
Initializes a new instance of the DependencyInjectionInfoAttribute class.
Top
Properties
  NameDescription
Public propertyContextType
Gets / sets contextType. ContextType is the specification of what kind of instance is injected: a shared instance (Singleton) or a new instance each time an injection has to be made (NewInstancePerTarget, default).
Public propertyProperty
Gets / sets the propertyinfo object for the property to go.
Public propertyPropertyName
Gets / sets propertyName, which is the name of the property to set with the instance of the type annotated with this attribute.
Public propertyTargetKind
Gets / sets targetKind. Targetkind defines which types get the instance injected: only the specified type (absolute) or also all subtypes (hierarchy, default). If this property is set to a value and TargetType is an interface, TargetKind will be reset to Absolute.
Public propertyTargetNamespaceFilter
Gets / sets the targetNamespaceFilter string which contains semi-colon (;) separated names, or fragments of names of namespaces to limit implementations of TargetType to, when TargetType is an interface. If any fragment specified is found as the start of the type’s namespace name, that type is a valid target. Optional. If no targetnamespacefilter is specified, all types are targeted.
Public propertyTargetType
Gets / sets targetType, into which to inject an instance of the type annotated with this attribute. Can be an interface, in which case all types which implement the interface and thus with the specified propertyName will get the instance type injected (if applicable)
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate method_AttributeGetIDsOfNames
Maps a set of names to a corresponding set of dispatch identifiers.
(Inherited from Attribute.)
Explicit interface implementationPrivate method_AttributeGetTypeInfo
Retrieves the type information for an object, which can be used to get the type information for an interface.
(Inherited from Attribute.)
Explicit interface implementationPrivate method_AttributeGetTypeInfoCount
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
(Inherited from Attribute.)
Explicit interface implementationPrivate method_AttributeInvoke
Provides access to properties and methods exposed by an object.
(Inherited from Attribute.)
Top
See Also