SyncWithDatabase (Method)

Applies To:

DataModel object

Description:

Causes a Data Model to synchronize itself with the underlying database tables.

Syntax:

Expression.SyncWithDatabase()

Expression Required:

An expression that returns a Data Model object

Example:

This example shows how to synchronize a Data Model with the database:

var MyDM = ActiveDocument.Sections["Datamodel"].DataModel
MyDM.SyncWithDatabase()