C# Class Earthworm.MappedField

Provides a custom attribute for specifying the source field name. This is used to map a database field to a property.
Inheritance: System.Attribute
ファイルを表示 Open project: jshirota/Earthworm Class Usage Examples

Public Methods

Method Description
MappedField ( string fieldName ) : System

Initializes a new instance of the MappedField class.

MappedField ( string fieldName, bool includeInJson ) : System

Initializes a new instance of the MappedField class.

MappedField ( string fieldName, int textLength ) : System

Initializes a new instance of the MappedField class.

MappedField ( string fieldName, int textLength, bool includeInJson ) : System

Initializes a new instance of the MappedField class.

Method Details

MappedField() public method

Initializes a new instance of the MappedField class.
public MappedField ( string fieldName ) : System
fieldName string The name of the table field.
return System

MappedField() public method

Initializes a new instance of the MappedField class.
public MappedField ( string fieldName, bool includeInJson ) : System
fieldName string The name of the table field.
includeInJson bool Indicates whether this field should be included in the JSON serialization.
return System

MappedField() public method

Initializes a new instance of the MappedField class.
public MappedField ( string fieldName, int textLength ) : System
fieldName string The name of the table field.
textLength int The length of the field (for text fields only).
return System

MappedField() public method

Initializes a new instance of the MappedField class.
public MappedField ( string fieldName, int textLength, bool includeInJson ) : System
fieldName string The name of the table field.
textLength int The length of the field (for text fields only).
includeInJson bool Indicates whether this field should be included in the JSON serialization.
return System