//=============================================================== public FileSystemRepository(String name, Func <T, object> keySelector, FileSystemOptions <T> options = null) : this(name, x => new[] { keySelector(x) }, options) { }
//=============================================================== public FileSystemInterface(FileSystemOptions <T> options) { Options = options; }
//=============================================================== public ExplicitKeyFileSystemRepository(String name, FileSystemOptions <T> options = null) : base(new FileSystemRepository <T>(name, NullKeySelector, options)) { }
//=============================================================== public FileSystemRepository(String name, Func <T, object[]> keySelector, FileSystemOptions <T> options = null) : base(keySelector) { options = options ?? new FileSystemOptions <T>(); FileSystemInterface = options.FileStorageType == FileStorageType.SingleFile ? (FileSystemInterface <T>) new SingleFileSystemInterface <T>(name, keySelector, options) : new MultipleFileSystemInterface <T>(name, keySelector, options); }
//=============================================================== public FileSystemRepository(Func <T, object[]> keySelector, FileSystemOptions <T> options = null) : base(keySelector) { options = options ?? new FileSystemOptions <T>(); FileSystemInterface = new FileSystemInterface <T>(options); }
public MultipleFileSystemInterface(string repoName, Func <T, object[]> keySelector, FileSystemOptions <T> options) : base(repoName, keySelector, options) { }
public FileSystemInterface(String repoName, Func <T, object[]> keySelector, FileSystemOptions <T> options) { RepositoryName = repoName; KeySelector = keySelector; Options = options; }