Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }