Class PropertyMap
Maps an entity property to its corresponding column in the database.
Inheritance
System.Object
PropertyMap
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: DapperExtensions.StrongName.dll
Syntax
public class PropertyMap : IPropertyMap
Constructors
|
Improve this Doc
View Source
PropertyMap(PropertyInfo)
Declaration
public PropertyMap(PropertyInfo propertyInfo)
Parameters
Type |
Name |
Description |
System.Reflection.PropertyInfo |
propertyInfo |
|
Properties
|
Improve this Doc
View Source
ColumnName
Gets the column name for the current property.
Declaration
public string ColumnName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Ignored
Gets the ignore status of the current property. If ignored, the current property will not be included in queries.
Declaration
public bool Ignored { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReadOnly
Gets the read-only status of the current property. If read-only, the current property will not be included in INSERT and UPDATE queries.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
KeyType
Gets the key type for the current property.
Declaration
public KeyType KeyType { get; }
Property Value
|
Improve this Doc
View Source
Name
Gets the name of the property by using the specified propertyInfo.
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
PropertyInfo
Gets the property info for the current property.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
Type |
Description |
System.Reflection.PropertyInfo |
|
Methods
|
Improve this Doc
View Source
Column(String)
Fluently sets the column name for the property.
Declaration
public PropertyMap Column(string columnName)
Parameters
Type |
Name |
Description |
System.String |
columnName |
The column name as it exists in the database.
|
Returns
|
Improve this Doc
View Source
Ignore()
Fluently sets the ignore status of the property.
Declaration
public PropertyMap Ignore()
Returns
|
Improve this Doc
View Source
Key(KeyType)
Fluently sets the key type of the property.
Declaration
public PropertyMap Key(KeyType keyType)
Parameters
Type |
Name |
Description |
KeyType |
keyType |
|
Returns
|
Improve this Doc
View Source
ReadOnly()
Fluently sets the read-only status of the property.
Declaration
public PropertyMap ReadOnly()
Returns
Implements