Knight Data Access Layer
Verify Mappings VB.NET
Basic Tasks VB.NET > Mapping > Verify Mappings VB.NET

Use Mapper.VerifyMap or Mapper.VerifyNamespace to verify a single class or all the classes within a namespace against the actual tables and columns in the database.

 

Verify Map

Dim db As IDataHelper = DataHelper.SessionFactory()

db.Mapper.VerifyMap(GetType(Customer))

 

Verify Namespace

Dim db As IDataHelper = DataHelper.SessionFactory()

db.Mapper.VerifyNamespace("KellermanSoftware.Models")