namespace SlpModularCms.Modules.Media; /// Settings of the library's own tables (Media:Library:*). Everything is off by default: a deploy of the code alone only adds the empty tables. public class MediaLibraryOptions { public const string SectionName = "Media:Library"; /// /// Copy the photos and uses of the modules into the library's tables once at start-up and verify the copy /// (Media__Library__CopyOnStartup=true). Safe to repeat: the copy mirrors the source. Never touches the modules' own data. /// public bool CopyOnStartup { get; set; } /// /// Write-through (phase 2, step A, Media__Library__DualWrite=true): after every change a module saved to its own tables, /// the library tables are mirrored too. Off by default; the modules' own tables stay the truth. /// public bool DualWrite { get; set; } /// /// Where the library screen reads the photos from (phase 2, step C, Media__Library__ReadFromLibrary): Off (the /// module's own tables, the default), Compare (still those, but differences with the library tables are logged and /// shown by GET media-library/read-check) or On (the library tables; needs DualWrite). /// public SlpModularCms.Core.Media.Library.MediaReadMode ReadFromLibrary { get; set; } = SlpModularCms.Core.Media.Library.MediaReadMode.Off; }