Knight Data Access Layer
Generate Namespace SQL VB.NET
Basic Tasks VB.NET > Generation > Generate Namespace SQL VB.NET

 Use the GenerateNamespaceSql to create the SQL needed to create the tables for all the corresponding classes in a database.

 

'Get the current instance of the helper

Dim db As IDataHelper = DataHelper.SessionFactory()

  

'Get the SQL to create tables for a namespace

Dim sql As String = db.GenerateNamespaceSql("AcmeCorporation.InvoiceSystem)