Interface IPropertyBuilder<TEntity>
Builder for fluent configuration of entity's property.
Inherited Members
Namespace: Kros.KORM.Metadata
Assembly: Kros.KORM.dll
Syntax
public interface IPropertyBuilder<TEntity> : IMappedPropertyBuilder<TEntity> where TEntity : class
Type Parameters
| Name | Description |
|---|---|
| TEntity | Type of entity. In general it is a class representing table in database. |
Methods
HasColumnName(String)
Configures column name for the property. Needed when column in the database has different name than the property itself.
Declaration
INamedPropertyBuilder<TEntity> HasColumnName(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | columnName | Name of the column in database. |
Returns
| Type | Description |
|---|---|
| INamedPropertyBuilder<TEntity> | Builder for additional configuration of the property. |
NoMap()
Configures property as no mapping. The property will be ignored by KORM.
Declaration
IEntityTypePropertyBuilder<TEntity> NoMap()
Returns
| Type | Description |
|---|---|
| IEntityTypePropertyBuilder<TEntity> | Entity builder for configuring another properties. |