protected override IRepository Create() { var settings = new NewtonsoftJson.DataRepositorySettings( directory: this.TargetDirectory.FullName, jsonSerializerSettings: RepositorySettings.CreateDefaultJsonSettings(), isTrackingDirty: true, saveNullDeletesFile: true, backupSettings: Default.BackupSettings(this.TargetDirectory)); return(new DataRepository(settings)); }
protected override IRepository CreateRepository() { var settings = new NewtonsoftJson.DataRepositorySettings( directory: this.Directory.FullName, jsonSerializerSettings: NewtonsoftJson.RepositorySettings.CreateDefaultJsonSettings(), isTrackingDirty: false, saveNullDeletesFile: false, backupSettings: null); return(new DataRepository(settings)); }