Click or drag to resize
IBaseStationDatabaseCreateDatabaseIfMissing Method
If the database file is missing or entirely empty then this method creates the file and pre-populates the tables with roughly the same records that BaseStation prepopulates a new database with.

Namespace: VirtualRadar.Interface.Database
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void CreateDatabaseIfMissing(
	string fileName
)

Parameters

fileName
Type: SystemString
The name of the database file to create. This need not be the same as FileName.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if WriteSupportEnabled is false.
Remarks
This does nothing if the database file exists and is not zero-length or if the database file is not set.
See Also