Class ReflectiveMapping
This sub-component implements some helper methods to resolve
constructor und property related input of an object.
Inheritance
System.Object
ReflectiveMapping
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data.Mapping
Assembly: Mars.Core.dll
Syntax
public class ReflectiveMapping
Constructors
| Improve this Doc View SourceReflectiveMapping()
This sub-component implements some helper methods to resolve
constructor und property related input of an object.
Declaration
public ReflectiveMapping()
Methods
| Improve this Doc View SourceCustomParameterMapping(ParameterInfo, IReadOnlyCollection<IModelObject>, out Object)
This method provides a hook for (required) parameter mapping implementations e.g, for
special Guid or un-/register handles passing resolved values for these kind of expected parameter.
Declaration
protected virtual bool CustomParameterMapping(ParameterInfo parameter, IReadOnlyCollection<IModelObject> runtimeDependencies, out object resolvedValue)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.ParameterInfo | parameter | The current considered parameter of a type. |
System.Collections.Generic.IReadOnlyCollection<IModelObject> | runtimeDependencies | All optional IModelObjects passed and managed by the model/user itself and not by the framework (e.g., self created environments). |
System.Object | resolvedValue | The resolved value used to pass them to the property instance of parameter |
Returns
Type | Description |
---|---|
System.Boolean |
CustomPropertyMapping(PropertyType, IReadOnlyCollection<IModelObject>, out Object)
This method provides a hook for mapping implementations e.g, for entity types or layers types, in order
to pass suitable values for special required dependencies.
Declaration
protected virtual bool CustomPropertyMapping(PropertyType propertyType, IReadOnlyCollection<IModelObject> dependencies, out object resolvedValue)
Parameters
Type | Name | Description |
---|---|---|
PropertyType | propertyType | The property for which a mapping is concerned. |
System.Collections.Generic.IReadOnlyCollection<IModelObject> | dependencies | All model objects passed and managed by the model itself not the framework (e.g., created environments). |
System.Object | resolvedValue |
The resolved value used to pass them to the property instance of propertyType
|
Returns
Type | Description |
---|---|
System.Boolean |
InitializeInstance<T>(TypeMapping, IEnumerable<PropertyType>, IDomainData, T, IReadOnlyCollection<IModelObject>)
Declaration
public void InitializeInstance<T>(TypeMapping typeMapping, IEnumerable<PropertyType> propertyInjection, IDomainData domainData, T instance, IReadOnlyCollection<IModelObject> dependencies)
Parameters
Type | Name | Description |
---|---|---|
TypeMapping | typeMapping | |
System.Collections.Generic.IEnumerable<PropertyType> | propertyInjection | |
IDomainData | domainData | |
T | instance | |
System.Collections.Generic.IReadOnlyCollection<IModelObject> | dependencies |
Type Parameters
Name | Description |
---|---|
T |
MapParameters<T>(TypeMapping, IReadOnlyList<ParameterInfo>, IReadOnlyList<Type>, IReadOnlyList<Object>, Guid, IDomainData)
This sub-component implements some helper methods to resolve
constructor und property related input of an object.
Declaration
public object[] MapParameters<T>(TypeMapping typeMapping, IReadOnlyList<ParameterInfo> parameters, IReadOnlyList<Type> parameterTypeMapping, IReadOnlyList<object> staticArguments, Guid id, IDomainData domainData)
Parameters
Type | Name | Description |
---|---|---|
TypeMapping | typeMapping | |
System.Collections.Generic.IReadOnlyList<System.Reflection.ParameterInfo> | parameters | |
System.Collections.Generic.IReadOnlyList<System.Type> | parameterTypeMapping | |
System.Collections.Generic.IReadOnlyList<System.Object> | staticArguments | |
System.Guid | id | |
IDomainData | domainData |
Returns
Type | Description |
---|---|
System.Object[] |
Type Parameters
Name | Description |
---|---|
T |
MapParameterTypes(IReadOnlyCollection<IModelObject>, IDictionary<String, IndividualMapping>, IReadOnlyCollection<ParameterInfo>, out Object[])
This sub-component implements some helper methods to resolve
constructor und property related input of an object.
Declaration
public Type[] MapParameterTypes(IReadOnlyCollection<IModelObject> dependencies, IDictionary<string, IndividualMapping> parameterMapping, IReadOnlyCollection<ParameterInfo> parameters, out object[] staticArguments)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyCollection<IModelObject> | dependencies | |
System.Collections.Generic.IDictionary<System.String, IndividualMapping> | parameterMapping | |
System.Collections.Generic.IReadOnlyCollection<System.Reflection.ParameterInfo> | parameters | |
System.Object[] | staticArguments |
Returns
Type | Description |
---|---|
System.Type[] |