Today, another tips to help you synchonize manually some objets between models and your database (Table, Type, Views, Entities ...)
Visual Studio uses actually a command to do this job on each process of synchronization from IDE (on Visual Project contextual menu for example or in the Dynamics 365 Menu).
To use this command ourself, we need to know it !
Type C:\AosService\PackagesLocalDirectory\Bin\SyncEngine.exe /? in a command prompt and you could see command options
Usage:
SyncEngine -option=[value]
-metadatabinaries Specify the metadata provider path
-binfolder Specify the location of the bin folder
-metadatafolder Specify the location of the metadata
-connect Specify the business database connection string
-syncmode Specify the sync mode. Supported mode: {fullall | initialschema | fullsecurity | fullids | fulltablesandviews | partiallist | drop | drop,partiallist | partialsecurity | partiallist,partialsecurity}
-synclist Specify list of tables or views that need be synced
-droplist Specify list of tables or views that need be dropped
-rolelist Specify list of roles that need be synced
-roleExtensionlist Specify list of role extensions that need be synced
-dutylist Specify list of duties that need be synced
-dutyExtensionlist Specify list of dutie extensions that need be synced
-privilegelist Specify list of privilegs that need be synced
-policylist Specify list of security policies that need be synced
-droproles Specify list of security roles that need be dropped
-droproleextensions Specify list of security role extensions that need be dropped
-dropduties Specify list of security duties that need be dropped
-dropdutyextensions Specify list of security duty extensions that need be dropped
-dropprivileges Specify list of security privileges that need be dropped
-droppolicies Specify list of security policies that need be dropped
-midisplaylist Specify list of display menu items that was changed for the table permission synchronization
-miactionlist Specify list of action menu items that was changed for the table permission synchronization
-mioutputlist Specify list of output menu items that was changed for the table permission synchronization
-formlist Specify list of forms that was changed for the table permission synchronization
-reportlist Specify list of reports that was changed for the table permission synchronization
-sqltimeout Specify Sql Command timeout in minutes
-verbosity Specify logging verbosity level. Supported level: {Normal | Diagnostic}
-ignoreIndexList Specify list of table with index that need to be ignored during Sync. The Expected format : {TableA.IndexA, TableB.IndexB}
Some examples of the command :
Usual command for a full compil :
C:\AosService\PackagesLocalDirectory\bin\syncengine.exe -syncmode="fullall" -metadatabinaries="C:\AosService\PackagesLocalDirectory" -connect="Data Source=localhost;Initial Catalog=AxDataBase;Integrated Security=True;Enlist=True;Application Name=AXVSSDK" -verbosity="Minimal"
Command for a partial compil of object's list (here just the CustCustomerEntity)
C:\AosService\PackagesLocalDirectory\Bin\SyncEngine.exe -syncmode="partiallist" -metadatabinaries=C:\AosService\PackagesLocalDirectory -connect="Data Source=AxServer.database.windows.net;User ID=admin@AxServer.database.windows.net;Password=xxxxxxxxx;Initial Catalog=DataBaseName;Integrated Security=false;Enlist=True;Application Name=SyncEngine" -verbosity="Diagnostic" -synclist="CustCustomerEntity"