Class Document
Inheritance
System.Object
Document
Implements
IHasExtraProperties
Assembly: Volo.Docs.Domain.dll
Syntax
public class Document : AggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp
Constructors
Document()
Declaration
Document(Guid, Guid, String, String, String, String, String, String, String, String, String, String, DateTime, DateTime, DateTime, Nullable<DateTime>)
Declaration
public Document(Guid id, Guid projectId, string name, string version, string languageCode, string fileName, string content, string format, string editLink, string rootUrl, string rawRootUrl, string localDirectory, DateTime creationTime, DateTime lastUpdatedTime, DateTime lastCachedTime, DateTime? lastSignificantUpdateTime = null)
Parameters
| Type |
Name |
Description |
| Guid |
id |
|
| Guid |
projectId |
|
| System.String |
name |
|
| System.String |
version |
|
| System.String |
languageCode |
|
| System.String |
fileName |
|
| System.String |
content |
|
| System.String |
format |
|
| System.String |
editLink |
|
| System.String |
rootUrl |
|
| System.String |
rawRootUrl |
|
| System.String |
localDirectory |
|
| DateTime |
creationTime |
|
| DateTime |
lastUpdatedTime |
|
| DateTime |
lastCachedTime |
|
| System.Nullable<DateTime> |
lastSignificantUpdateTime |
|
Properties
Content
Declaration
public virtual string Content { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Contributors
Declaration
public virtual List<DocumentContributor> Contributors { get; set; }
Property Value
CreationTime
Declaration
public virtual DateTime CreationTime { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
EditLink
Declaration
public virtual string EditLink { get; set; }
Property Value
| Type |
Description |
| System.String |
|
FileName
Declaration
public virtual string FileName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public virtual string Format { get; set; }
Property Value
| Type |
Description |
| System.String |
|
LanguageCode
Declaration
public virtual string LanguageCode { get; protected set; }
Property Value
| Type |
Description |
| System.String |
|
LastCachedTime
Declaration
public virtual DateTime LastCachedTime { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
LastSignificantUpdateTime
Declaration
public virtual DateTime? LastSignificantUpdateTime { get; set; }
Property Value
| Type |
Description |
| System.Nullable<DateTime> |
|
LastUpdatedTime
Declaration
public virtual DateTime LastUpdatedTime { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
LocalDirectory
Declaration
public virtual string LocalDirectory { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Name
Declaration
public virtual string Name { get; protected set; }
Property Value
| Type |
Description |
| System.String |
|
ProjectId
Declaration
public virtual Guid ProjectId { get; protected set; }
Property Value
RawRootUrl
Declaration
public virtual string RawRootUrl { get; set; }
Property Value
| Type |
Description |
| System.String |
|
RootUrl
Declaration
public virtual string RootUrl { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Version
Declaration
public virtual string Version { get; protected set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
AddContributor(String, String, String)
Declaration
public virtual void AddContributor(string username, string userProfileUrl, string avatarUrl)
Parameters
| Type |
Name |
Description |
| System.String |
username |
|
| System.String |
userProfileUrl |
|
| System.String |
avatarUrl |
|
FindContributor(String, String, String)
Declaration
public virtual DocumentContributor FindContributor(string username, string userProfileUrl, string avatarUrl)
Parameters
| Type |
Name |
Description |
| System.String |
username |
|
| System.String |
userProfileUrl |
|
| System.String |
avatarUrl |
|
Returns
RemoveAllContributors()
Declaration
public virtual void RemoveAllContributors()
RemoveContributor(String, String, String)
Declaration
public virtual void RemoveContributor(string username, string userProfileUrl, string avatarUrl)
Parameters
| Type |
Name |
Description |
| System.String |
username |
|
| System.String |
userProfileUrl |
|
| System.String |
avatarUrl |
|
Implements
IHasExtraProperties
Extension Methods