Пример #1
0
 //===============================================================
 public FileSystemRepository(String name, Func <T, object> keySelector, FileSystemOptions <T> options = null)
     : this(name, x => new[] { keySelector(x) }, options)
 {
 }
Пример #2
0
 //===============================================================
 public FileSystemInterface(FileSystemOptions <T> options)
 {
     Options = options;
 }
Пример #3
0
 //===============================================================
 public ExplicitKeyFileSystemRepository(String name, FileSystemOptions <T> options = null)
     : base(new FileSystemRepository <T>(name, NullKeySelector, options))
 {
 }
Пример #4
0
 //===============================================================
 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);
 }
Пример #5
0
 //===============================================================
 public FileSystemRepository(Func <T, object[]> keySelector, FileSystemOptions <T> options = null)
     : base(keySelector)
 {
     options             = options ?? new FileSystemOptions <T>();
     FileSystemInterface = new FileSystemInterface <T>(options);
 }
Пример #6
0
 public MultipleFileSystemInterface(string repoName, Func <T, object[]> keySelector, FileSystemOptions <T> options)
     : base(repoName, keySelector, options)
 {
 }
Пример #7
0
 public FileSystemInterface(String repoName, Func <T, object[]> keySelector, FileSystemOptions <T> options)
 {
     RepositoryName = repoName;
     KeySelector    = keySelector;
     Options        = options;
 }