Table Class | ![]() |
Namespace: Telogis.GeoBase.Transactional
The Table type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddField |
Adds a new column to this table.
|
![]() | CreateIndex |
Creates a new index on this table.
|
![]() | CreateRecord |
Creates a new Record for this table. This does not insert the record
into the database; this should be done after populating the Record
by calling Insert(Record).
|
![]() | Delete(IEnumerableRecord) |
Deletes one or more records from the table.
|
![]() | Delete(Record) |
Deletes one or more records from the table.
|
![]() | DeleteAll |
Delete all existing records in the table.
|
![]() | Dispose |
Disposes of this Table. This does not delete the table from the TransactionalRepository.
Ordinarily, there is no need to call this method directly,
Dispose should be called instead.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Insert |
Inserts a record into this table.
|
![]() | QueryAll |
Fetch all of the records in the table.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Update |
Update an existing record in the table
|
using (EnsureTransaction trans = new EnsureTransaction(myTransactionalRepository)) { Table warehouse = myTransactionalRepository.CreateTable("Warehouse"); warehouse.AddField("CustomerName", DataType.String); warehouse.AddField("Location", DataType.LatLon); }
Table warehouse = myTransactionalRepository.Tables["warehouse"];