Knight Data Access Layer
Table Exists VB.NET
Basic Tasks VB.NET > Database Commands > Table Exists VB.NET

Check to see if a table exists.

 

'Get the current instance of the helper

Dim db As IDataHelper = DataHelper.SessionFactory()

 

'check for table existence

Dim exists As Boolean = db.TableExists("Person")

 

OR

 

Dim exists As Boolean = db.TableExists(Of Person)()