source/Nevermore/Mapping/DocumentMap.cs
/// <summary>
/// Defines a column. The column name will be the name of the property.
/// </summary>
/// <param name="columnName">The name of the column that the property will be stored in.</param>
/// <param name="propertyType">The type of the property being read or written. This helps Nevermore to work out how to read it from the database, and which type handlers to call.</param>
/// <param name="handler">A custom property handler.</param>
/// <param name="prop">If handler uses a property, the property, so it can be excluded from JSON. Can be null.</param>
/// <returns>A builder to further configure the column mapping.</returns>
Defines a column. The column name will be the name of the property.
Defines a column . The column name will be the name of the property .
protected IColumnMappingBuilder Column(string columnName, Type propertyType, IPropertyHandler handler, PropertyInfo prop = null)
        {
            var column = new ColumnMapping(columnName, propertyType, handler, prop);
            map.Columns.Add(column);
            return column;
        }
protected IColumnMappingBuilder Column ( string columnName , Type propertyType , IPropertyHandler handler , PropertyInfo prop = null ) { var column = new ColumnMapping ( columnName , propertyType , handler , prop ) ; map . Columns . Add ( column ) ; return column ; }
Defines a column.
Defines a column .
A builder to further configure the column mapping.
A builder to further configure the column mapping .
columnName
string
The name of the column that the property will be stored in.
The name of the column that the property will be stored in .
propertyType
Type
The type of the property being read or written. This helps Nevermore to work out how to read it from the database, and which type handlers to call.
The type of the property being read or written . This helps Nevermore to work out how to read it from the database and which type handlers to call .
handler
IPropertyHandler
A custom property handler.
A custom property handler .
prop
PropertyInfo
If handler uses a property, the property, so it can be excluded from JSON. Can be null.
If handler uses a property the property so it can be excluded from JSON . Can be null .