Initializes a new instance of the FieldMappingAttribute class
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
| C# |
|---|
public FieldMappingAttribute( string strFieldName ) |
| Visual Basic |
|---|
Public Sub New ( _ strFieldName As String _ ) |
| Visual C++ |
|---|
public: FieldMappingAttribute( String^ strFieldName ) |
Parameters
- strFieldName
- Type: System..::..String
The name of the database field associated with this property or field.
Examples
Loads a field:
CopyC#
Loads an object:
CopyC#
<DatabaseObjects.FieldMapping("Name")> _
Private pstrName As String<DatabaseObjects.FieldMapping("ProductGroupID")> _
Private pobjGroup As New Generic.ObjectReference(Of ProductGroup, Integer)(Database.ProductGroups)