QuickObjects.ObjectBase Send comments on this topic.
Load Method
See Also 
Akal.QuickObjects.ObjectBase Namespace > BaseBusinessObject Class : Load Method

Load

Loads all the field's values with values from the database for the specified primary key column values.

You must specify value for each primary key column in the PrimaryKeyFields collection.

If the ObjectState value is set to Disconnected then this method will try to load the values from the data stored in the ResultSet property. This method will try to find a row that matches the primary key values from the data set and will not initiate a call to the database. This can be useful if the data set is being populated from a different source than a database, i.e. a web service or an xml file etc. This is only application starting version 3.x which introduced the object's disconnected model.

NOTE: This will automatically switch the UseInSearch property on all Fields to false except the PrimaryKeyFields, as they will be set to true. Also, the IsLoaded property will be set to true if the function was able to load the values.

Returns:
Type
System.Boolean

Syntax

C# 
[DataObjectMethodAttribute(true)]
public virtual bool Load()

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also