Interface IInjectionConfigurator<TModel>
Interface, which describe configurator, for configurate model property injection.
Namespace: Kros.KORM.Injection
Assembly: Kros.KORM.dll
Syntax
public interface IInjectionConfigurator<TModel>
Type Parameters
| Name | Description |
|---|---|
| TModel | Model type. |
Methods
FillProperty<TValue>(Expression<Func<TModel, TValue>>, Func<TValue>)
Fill model property with injector.
Declaration
IInjectionConfigurator<TModel> FillProperty<TValue>(Expression<Func<TModel, TValue>> modelProperty, Func<TValue> injector)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression<System.Func<TModel, TValue>> | modelProperty | Expression for defined property for injection. |
| System.Func<TValue> | injector | Function which is used for injection value to property. |
Returns
| Type | Description |
|---|---|
| IInjectionConfigurator<TModel> | Configurator, for next configurations. |
Type Parameters
| Name | Description |
|---|---|
| TValue | Property type. |