feat: pave the way for adding comments to tutorials
This commit is contained in:
parent
879ff6a295
commit
985acf7bc3
@ -25,5 +25,6 @@ internal sealed class TutorialArticleConfiguration : IEntityTypeConfiguration<Tu
|
|||||||
builder.Property(e => e.NextPart);
|
builder.Property(e => e.NextPart);
|
||||||
builder.Property(e => e.PreviousPart);
|
builder.Property(e => e.PreviousPart);
|
||||||
builder.Property(e => e.Visibility).HasConversion<EnumToStringConverter<Visibility>>();
|
builder.Property(e => e.Visibility).HasConversion<EnumToStringConverter<Visibility>>();
|
||||||
|
builder.Property(e => e.EnableComments).IsRequired();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,14 @@ public interface ITutorialArticle
|
|||||||
/// <value>The body.</value>
|
/// <value>The body.</value>
|
||||||
string Body { get; }
|
string Body { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a value indicating whether comments are enabled for the article.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// <see langword="true" /> if comments are enabled for the article; otherwise, <see langword="false" />.
|
||||||
|
/// </value>
|
||||||
|
bool EnableComments { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the excerpt of this article, if it has one.
|
/// Gets the excerpt of this article, if it has one.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -8,6 +8,9 @@ internal sealed class TutorialArticle : IEquatable<TutorialArticle>, ITutorialAr
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string Body { get; private set; } = string.Empty;
|
public string Body { get; private set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public bool EnableComments { get; internal set; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? Excerpt { get; private set; }
|
public string? Excerpt { get; private set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user