Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLiteEntry"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this entry belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The file system information</param>
 /// <param name="path">The root-relative path of this entry</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileEntry.Name"/> of <see cref="SQLiteEntry.Info"/> should be used)</param>
 protected SQLiteEntry(SQLiteFileSystem fileSystem, ICollection parent, FileEntry info, Uri path, string name)
 {
     Parent           = parent;
     Info             = info;
     SQLiteFileSystem = fileSystem;
     Path             = path;
     ETag             = EntityTag.Parse(Info.ETag).Single();
     Name             = name ?? info.Name;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLiteCollection"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this collection belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The directory information</param>
 /// <param name="path">The root-relative path of this collection</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileEntry.Name"/> of <see cref="SQLiteEntry.Info"/> should be used)</param>
 /// <param name="isRoot">Is this the file systems root directory?</param>
 public SQLiteCollection(
     SQLiteFileSystem fileSystem,
     ICollection parent,
     FileEntry info,
     Uri path,
     string name,
     bool isRoot = false)
     : base(fileSystem, parent, info, path, name)
 {
     _isRoot = isRoot;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLiteDocument"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this document belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The file information</param>
 /// <param name="path">The root-relative path of this document</param>
 public SQLiteDocument(SQLiteFileSystem fileSystem, ICollection parent, FileEntry info, Uri path)
     : base(fileSystem, parent, info, path, null)
 {
 }