Click or drag to resize

Record Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A record is a row in a Table. Each record has a number of predefined columns. See remarks for usage notes.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.TransactionalRecord

Namespace:  Telogis.GeoBase.Transactional
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class Record

The Record type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleItem
Get or set a column value for this record.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInteger
Gets the integer value for the specified column in this record.
Public methodGetLatLon
Gets the location value for the specified column in this record.
Public methodGetPolygon
Gets the polygon value for the specified column in this record.
Public methodGetString
Gets the string value for the specified column in this record.
Public methodGetTime
Gets the time value for the specified column in this record.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSet(String, DateTime)
Gets the time value for the specified column in this record.
Public methodSet(String, Int64)
Sets the integer value for the specified column in this record.
Public methodSet(String, String)
Sets the String value for the specified column in this record.
Public methodSet(String, Polygon)
Sets the polygon value for the specified column in this record.
Public methodSet(String, LatLon)
Sets the location value for the specified column in this record.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
You should create a record using Table.CreateRecord. Populate the fields of the record then insert the record into the table using Table.Insert. See example.
Examples
C#
// 
// Use the table's CreateRecord() method to create the record
// 
Record myRecord = myTable.CreateRecord();

// 
// We must begin a transaction before we can modify the
// repository
// 
myTransactionalRepo.BeginTransaction();

// 
// Populate the fields of the record
// 
myRecord["PoiName"] = "Acme Corp";
myRecord["Location"] = new LatLon(37.25, -117.5);

// 
// Add the record to the database
// 
myTable.Insert(myRecord);

// 
// No changes are made to the repository until we finalize
// the transaction.
// 
myTransactionalRepo.EndTransaction();
See Also