Interface IEntityTypeConvertersBuilder<TEntity>
Builder for fluent configuration of entity, which allows configuration of data converters (IConverter).
Inherited Members
Namespace: Kros.KORM.Metadata
Assembly: Kros.KORM.dll
Syntax
public interface IEntityTypeConvertersBuilder<TEntity> : IEntityTypePropertyBuilder<TEntity> where TEntity : class
Type Parameters
| Name | Description |
|---|---|
| TEntity | Type of entity. In general it is a class representing table in database. |
Methods
UseConverterForProperties<TProperty>(IConverter)
Configures converter for all properties of specified type TProperty.
Declaration
IEntityTypeConvertersBuilder<TEntity> UseConverterForProperties<TProperty>(IConverter converter)
Parameters
| Type | Name | Description |
|---|---|---|
| IConverter | converter | Converter to be used for all properties of given type. |
Returns
| Type | Description |
|---|---|
| IEntityTypeConvertersBuilder<TEntity> | Returns self, for additional configuration of the entity. |
Type Parameters
| Name | Description |
|---|---|
| TProperty | Type of the property. |
UseConverterForProperties<TProperty, TConverter>()
Configures converter of type TConverter for all properties of specified type
TProperty.
Declaration
IEntityTypeConvertersBuilder<TEntity> UseConverterForProperties<TProperty, TConverter>()
where TConverter : IConverter, new()
Returns
| Type | Description |
|---|---|
| IEntityTypeConvertersBuilder<TEntity> | Returns self, for additional configuration of the entity. |
Type Parameters
| Name | Description |
|---|---|
| TProperty | Type of the property. |
| TConverter | Type of the converter to be used for all properties of given type. Instance of that type is created. |