QuickObjects.DBLibrary Send comments on this topic.
EnsureDatabaseType Method
See Also 
Akal.QuickObjects.DBLibrary Namespace > DatabaseObject Class : EnsureDatabaseType Method

EnsureDatabaseType

Checks the DBType property and if it is set to None, it will try to get the Configuration / AppSettings / key that defines the DBType.

Calling this method is not needed in normal scenarios. This will be needed only if you are changing the DatabaseTypeConfigName property through the code and would want to ensure that the new value is loaded from the configuration file and the DBType property is updated accordingly.

If you are calling EnsureConnectionString method as well then you don't need to call EnsureDatabaseType as it is called by the EnsureConnectionString.

Syntax

C# 
protected void EnsureDatabaseType()

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also