DependencyInjectionScopeAddInjectionInfo Method (Type, Type, String, DependencyInjectionTargetKind, DependencyInjectionContextType, IEnumerableString) |
Adds the injection info passed in to the scope data. Call this method one or more times from an override of
InitializeScope.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax protected void AddInjectionInfo(
Type instanceType,
Type targetType,
string propertyName,
DependencyInjectionTargetKind targetKind,
DependencyInjectionContextType contextType,
IEnumerable<string> targetNamespaceFilterFragments
)
Protected Sub AddInjectionInfo (
instanceType As Type,
targetType As Type,
propertyName As String,
targetKind As DependencyInjectionTargetKind,
contextType As DependencyInjectionContextType,
targetNamespaceFilterFragments As IEnumerable(Of String)
)
Parameters
- instanceType
- Type: SystemType
Type of the instance to inject. - targetType
- Type: SystemType
Type of the target which contains propertyName and which gets an instance of instanceType injected. - propertyName
- Type: SystemString
Name of the property to set with an instace of instanceType. - targetKind
- Type: SD.LLBLGen.Pro.ORMSupportClassesDependencyInjectionTargetKind
targetKind definition. - contextType
- Type: SD.LLBLGen.Pro.ORMSupportClassesDependencyInjectionContextType
contextType definition. - targetNamespaceFilterFragments
- Type: System.Collections.GenericIEnumerableString
The target namespace filter fragments.
See Also