예제 #1
0
        /// <summary>
        /// Updates the sync log.
        /// </summary>
        protected void UpdateSyncLog()
        {
            SchemaCollection newTables = this.Sql.GetTables();
            SchemaCollection newProcedures = this.Sql.GetStoredProcedure();

            SchemaLogBuilder builder = new SchemaLogBuilder(this.appSettings.DBName);
            builder.Append(newTables);
            builder.Append(newProcedures);
            builder.Commit(this.appSettings.DirectoryPath);
        }
예제 #2
0
 /// <summary>
 /// Reads the sync log.
 /// </summary>
 /// <returns>The sync log.</returns>
 protected SchemaCollection ReadSyncLog()
 {
     SchemaLogBuilder builder = new SchemaLogBuilder(this.appSettings.DirectoryPath, this.appSettings.DBName);
     return builder.ReadLog();
 }