Click or drag to resize

DependencyInjectionScope.AddInjectionInfo Method (Type, Type, String, DependencyInjectionTargetKind, DependencyInjectionContextType, IEnumerable<String>)

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.8.0.0 (5.8.21.0111)
Syntax
protected void AddInjectionInfo(
	Type instanceType,
	Type targetType,
	string propertyName,
	DependencyInjectionTargetKind targetKind,
	DependencyInjectionContextType contextType,
	IEnumerable<string> targetNamespaceFilterFragments
)

Parameters

instanceType
Type: System.Type
Type of the instance to inject.
targetType
Type: System.Type
Type of the target which contains propertyName and which gets an instance of instanceType injected.
propertyName
Type: System.String
Name of the property to set with an instace of instanceType.
targetKind
Type: SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionTargetKind
targetKind definition.
contextType
Type: SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionContextType
contextType definition.
targetNamespaceFilterFragments
Type: System.Collections.Generic.IEnumerable<String>
The target namespace filter fragments.
See Also