TransactionalRepository Constructor (String) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Opens or creates a transactional database on disk in read-write mode.
Namespace:
Telogis.GeoBase.Transactional
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public TransactionalRepository(
string path
)
Public Sub New (
path As String
)
Parameters
- path
- Type: SystemString
The path to the file to open. Typically the filename
will end with the 'gbtx' extension.
Remarks
When you have finished with a transactional repository you should call
the dispose method to release memory and release the file handle.
Examples
This code snippet demonstrates how you can check to see if the
repository was created, or simply loaded from disk. If the
repository was created it will be empty. This is typically a
good place in the execution cycle of your application to create
any tables and indexes that your application needs to function.
String fname = "MyData.gbtx";
bool created = !System.IO.File.Exists(fname);
TransactionalRepository tr = new TransactionalRepository(fname);
if (created) {
} else {
}
...
tr.Dispose();
See Also