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
Afficher le fichier Open project: jshirota/Earthworm Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

MappedField() public méthode

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.
Résultat System

MappedField() public méthode

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).
Résultat System

MappedField() public méthode

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.
Résultat System