Gets the values from the properties and fields marked with the FieldMappingAttribute to be saved to the database. Properties or fields that return an enum data type are automatically converted from the enum to the equivalent integer value for database storage. For properties and fields marked with the FieldMappingObjectHookAttribute the property's or field's object is also traversed for properties or fields marked with the FieldMappingAttribute.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
protected virtual SQLFieldValues SaveFields()
Visual Basic
Protected Overridable Function SaveFields As SQLFieldValues
Visual C++
protected:
virtual SQLFieldValues^ SaveFields()

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.DatabaseObject.SaveFields"]

Implements

IDatabaseObject..::..SaveFields()()()()

Examples

CopyC#
<DatabaseObjects.FieldMapping("Name")> _
Private pstrName As String

OR

<DatabaseObjects.FieldMapping("Name")> _
Public Property Name() As String
    Get

        Return pstrName

    End Get

    Set(ByVal Value As String)

        pstrName = Value

    End Set

End Property

See Also