示例#1
0
        public bool Equals(DocumentPath <T> other)
        {
            IDocumentPath o = other, s = Self;

            return(s.Index.NullOrEquals(o.Index) && s.Type.NullOrEquals(o.Type) && s.Id.NullOrEquals(o.Id) &&
                   (this.Document?.Equals(other.Document) ?? true));
        }
示例#2
0
 /// <summary>
 /// Adds a replaced content to the solution.
 /// </summary>
 /// <param name="exportId">The content ID.</param>
 /// <param name="documentPath">The path to the new item.</param>
 public void AddReplacedContent(string exportId, IDocumentPath documentPath)
 {
     ReplaceContentTable.Add(exportId, documentPath);
 }
示例#3
0
        public LiteDbContext(IOptions <LiteDbOptions> options, IDocumentPath documentPath)
        {
            var path = Path.Combine(documentPath.Path, options.Value.DatabaseLocation);

            Database = new LiteDatabase(path);
        }