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)); }
/// <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); }
public LiteDbContext(IOptions <LiteDbOptions> options, IDocumentPath documentPath) { var path = Path.Combine(documentPath.Path, options.Value.DatabaseLocation); Database = new LiteDatabase(path); }