コード例 #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;
 }