Ejemplo n.º 1
0
 /// <summary>
 /// Exports the Gallery Server data in the current database to an XML-formatted string. Does not export the actual media files;
 /// they must be copied manually with a utility such as Windows Explorer. This method does not make any changes to the database tables
 /// or the files in the media objects directory.
 /// </summary>
 /// <returns>Returns an XML-formatted string containing the gallery data.</returns>
 public string Create()
 {
     return(BackupFileController.ExportToFile(this));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Imports the Gallery Server data into the current database, overwriting any existing data. Does not import the actual media
 /// files; they must be imported manually with a utility such as Windows Explorer. This method makes changes only to the database tables;
 /// no files in the media objects directory are affected. If both <see cref="IncludeMembershipData" /> and <see cref="IncludeGalleryData" />
 /// are false, then no action is taken.
 /// </summary>
 public void Import()
 {
     BackupFileController.ImportFromFile(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Validates that the current backup file is valid and populates the remaining properties with information about the file.
 /// </summary>
 public void Validate()
 {
     BackupFileController.ValidateFile(this);
 }