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