Class ScramblingOptions
- Namespace
- The.Components
- Assembly
- Instagile.dll
public sealed class ScramblingOptions
- Inheritance
-
ScramblingOptions
- Inherited Members
Properties
DateScramblingDayRange
The maximum number of days into the future that the data scrambler should change date values in order to scramble them.
public int DateScramblingDayRange { get; set; }
Property Value
DefaultDateFormat
Format to use when reading or detecting date values from spreadsheets.
public string DefaultDateFormat { get; set; }
Property Value
DefaultDateTimeFormat
Format to use when reading or detecting datetime values from spreadsheets.
public string DefaultDateTimeFormat { get; set; }
Property Value
DefaultScramblingAction
Fallback behaviour for the data scrambler if no cascading scrambling tag has been specified in the model snapshot.
public ScramblingAction DefaultScramblingAction { get; set; }
Property Value
DefaultTimeFormat
Format to use when reading or detecting time values from spreadsheets.
public string DefaultTimeFormat { get; set; }
Property Value
EntityScramblingBatchSize
Batch size to use when scrambling entities.
public int EntityScramblingBatchSize { get; set; }
Property Value
PreserveInstantOffset
When scrambling attributes of type Instant, whether to preserve the Offset component. If false, converts to UTC before scrambling.
public bool PreserveInstantOffset { get; set; }
Property Value
PurgeAuditLogsAfterScrambling
Whether to purge audit entity types after scrambling a database.
public bool PurgeAuditLogsAfterScrambling { get; set; }
Property Value
PurgeBatchSize
Batch size to use when erasing a target scrambled database in preparation to store scrambled data in it.
public int PurgeBatchSize { get; set; }
Property Value
RecalculateAfterScrambling
Whether to recalculate properties after scrambling a database.
public bool RecalculateAfterScrambling { get; set; }
Property Value
RelationshipCopyingBatchSize
Batch size to use when copying relationships to a scrambled database.
public int RelationshipCopyingBatchSize { get; set; }
Property Value
ScramblingUsername
The identity to use for persistence when scrambling.
public string ScramblingUsername { get; set; }
Property Value
TimeScramblingMinuteRange
The maximum number of minutes into the future that the data scrambler should change time values in order to scramble them.
public int TimeScramblingMinuteRange { get; set; }
Property Value
Methods
AddDatabase(string, Func<Stream>, EntityMetadataDictionary, EntityMetadataDictionary, IEntityStore, IEntityStore, IEntityStore)
Registers a database that can be scrambled.
public void AddDatabase(string name, Func<Stream> getModelStream, EntityMetadataDictionary metadata, EntityMetadataDictionary legacyMetadata, IEntityStore scrambledStore, IEntityStore legacyStore, IEntityStore scrambledLegacyStore)
Parameters
namestringA name for this database that can be scrambled.
getModelStreamFunc<Stream>A function returning a stream containing the model file for the framework database being scrambled.
metadataEntityMetadataDictionaryEntity metadata in non-legacy mode for the scrambled database.
legacyMetadataEntityMetadataDictionaryEntity metadata in legacy mode for the scrambled database.
scrambledStoreIEntityStoreEntity store configured in non-legacy mode for the scrambled database.
legacyStoreIEntityStoreEntity store configured in legacy mode for the non-scrambled database.
scrambledLegacyStoreIEntityStoreEntity store configured in legacy mode for the scrambled database.
AddGlobalExcludedWord(string)
Prevents the specified word from being scrambled.
public void AddGlobalExcludedWord(string excludedWord)
Parameters
excludedWordstringThe word to exclude from scrambling. This is case insensitive within the invariant culture.
AddGlobalExcludedWordPrefix(string)
Prevents the specified prefix from being scrambled. For ""id"" is added and the scrambler encounters the word ""idiosyncrasy"" or ""ID12345"", it will leave the first two letters unchanged and scramble the remaining characters.
public void AddGlobalExcludedWordPrefix(string excludedWordPrefix)
Parameters
excludedWordPrefixstringThe prefix to exclude from scrambling. This is case insensitive within the invariant culture.