Sets the properties and fields marked with the FieldMappingAttribute with the
values from the database record. Properties or fields that are an enum data
type are automatically converted from the database integer value to the equivalent
enum. 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.
Loads the lowest order base class that does not exist in the
DatabaseObjects assembly first up through to the highest order class.
This function should generally not be called from an inheritor.
Use LoadFieldValues() to correctly load this object from a set of field values.
Namespace: DatabaseObjectsAssembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0
Syntax
C# |
---|
protected virtual void LoadFields( SQLFieldValues objFields ) |
Visual Basic |
---|
Protected Overridable Sub LoadFields ( _ objFields As SQLFieldValues _ ) |
Visual C++ |
---|
protected: virtual void LoadFields( SQLFieldValues^ objFields ) |
Parameters
- objFields
- Type: DatabaseObjects.SQL..::..SQLFieldValues
[Missing <param name="objFields"/> documentation for "M:DatabaseObjects.DatabaseObject.LoadFields(DatabaseObjects.SQL.SQLFieldValues)"]
Implements
IDatabaseObject..::..LoadFields(SQLFieldValues)Remarks
Generally, this function should only be overriden in order to perform any custom
loading of data from the database. To completely initialize and load the object
from an SQL.SQLFieldValues object call the protected LoadFieldValues(SQL.SQLFieldValues)
sub.
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