docs: #292 setting default values for to Published fields and adding a new field

This commit is contained in:
Hamid Reza Mohammadi 2022-03-09 19:09:36 +03:30
parent a62549c14a
commit e4d628c467
3 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMuseum.Models.Ganjoor
@ -64,6 +65,11 @@ namespace RMuseum.Models.Ganjoor
/// </summary>
public string Description { get; set; }
/// <summary>
/// html mode of additional descripion or note
/// </summary>
public string DescriptionHtml { get; set; }
/// <summary>
/// order when mixed with poems
/// </summary>
@ -72,6 +78,7 @@ namespace RMuseum.Models.Ganjoor
/// <summary>
/// published
/// </summary>
[DefaultValue(true)]
public bool Published { get; set; }
}
}

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMuseum.Models.Ganjoor
@ -102,6 +103,7 @@ namespace RMuseum.Models.Ganjoor
/// <summary>
/// published
/// </summary>
[DefaultValue(true)]
public bool Published { get; set; }
/// <summary>

View File

@ -5693,6 +5693,11 @@
additional descripion or note
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCat.DescriptionHtml">
<summary>
html mode of additional descripion or note
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCat.MixedModeOrder">
<summary>
order when mixed with poems