Extracts the fields to save to the database from the objItem.SaveFields function. The fields are then written to the database using either an SQL INSERT or UPDATE depending on whether the object has already been saved.

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

Syntax

C#
protected void ObjectSave(
	T objItem
)
Visual Basic
Protected Sub ObjectSave ( _
	objItem As T _
)
Visual C++
protected:
void ObjectSave(
	T objItem
)

Parameters

objItem
Type: T
The object to save to the database. The values saved to the database are extracted from the SQLFieldValues object returned from IDatabaseObject.SaveFields.

See Also