DatabaseName property

Specifies a name for the database or the name of a loaded database to which a connection needs to be made.

Syntax
Visual Basic
Public Property DatabaseName As String
C#
public string  DatabaseName { get; set; }
Property value

A string specifying the name of the database. The default is a null reference (Nothing in Visual Basic).

Remarks

When a database is started, it is assigned a database name, either explicitly with the dbn parameter, or by UltraLite using the base of the file name with the extension and path removed.

When opening connections, UltraLite first searches for a running database with a matching dbn. If one is not found, UltraLite starts a new database using the appropriate database file name parameter (DatabaseOnCE or DatabaseOnDesktop).

This parameter is required if the application (or UltraLite engine) needs to access two different databases that have the same base file name.

See also