C# Class DapperExtensions.Mapper.PropertyMap

Maps an entity property to its corresponding column in the database.
Inheritance: IPropertyMap
Show file Open project: tmsmith/Dapper-Extensions Class Usage Examples

Public Methods

Method Description
Column ( string columnName ) : PropertyMap

Fluently sets the column name for the property.

Ignore ( ) : PropertyMap

Fluently sets the ignore status of the property.

Key ( KeyType keyType ) : PropertyMap

Fluently sets the key type of the property.

PropertyMap ( PropertyInfo propertyInfo ) : System
ReadOnly ( ) : PropertyMap

Fluently sets the read-only status of the property.

Method Details

Column() public method

Fluently sets the column name for the property.
public Column ( string columnName ) : PropertyMap
columnName string The column name as it exists in the database.
return PropertyMap

Ignore() public method

Fluently sets the ignore status of the property.
public Ignore ( ) : PropertyMap
return PropertyMap

Key() public method

Fluently sets the key type of the property.
public Key ( KeyType keyType ) : PropertyMap
keyType KeyType
return PropertyMap

PropertyMap() public method

public PropertyMap ( PropertyInfo propertyInfo ) : System
propertyInfo System.Reflection.PropertyInfo
return System

ReadOnly() public method

Fluently sets the read-only status of the property.
public ReadOnly ( ) : PropertyMap
return PropertyMap