#224 added PinOrder field to GanjoorPoet

This commit is contained in:
Hamid Reza Mohammadi 2021-10-21 14:00:12 +03:30
parent 5eb8d811d3
commit 57feb77470
5 changed files with 30 additions and 3 deletions

View File

@ -10,8 +10,8 @@ using RMuseum.DbContext;
namespace RMuseum.Migrations
{
[DbContext(typeof(RMuseumDbContext))]
[Migration("20211021064655_GanjoorHalfCenturies")]
partial class GanjoorHalfCenturies
[Migration("20211021102748_GanjoorHalfCentury")]
partial class GanjoorHalfCentury
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
@ -1014,6 +1014,9 @@ namespace RMuseum.Migrations
b.Property<string>("Nickname")
.HasColumnType("nvarchar(max)");
b.Property<int>("PinOrder")
.HasColumnType("int");
b.Property<bool>("Published")
.HasColumnType("bit");

View File

@ -2,7 +2,7 @@
namespace RMuseum.Migrations
{
public partial class GanjoorHalfCenturies : Migration
public partial class GanjoorHalfCentury : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
@ -26,6 +26,13 @@ namespace RMuseum.Migrations
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PinOrder",
table: "GanjoorPoets",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateTable(
name: "GanjoorHalfCenturies",
columns: table => new
@ -81,6 +88,10 @@ namespace RMuseum.Migrations
migrationBuilder.DropColumn(
name: "GanjoorHalfCenturyId",
table: "GanjoorPoets");
migrationBuilder.DropColumn(
name: "PinOrder",
table: "GanjoorPoets");
}
}
}

View File

@ -1012,6 +1012,9 @@ namespace RMuseum.Migrations
b.Property<string>("Nickname")
.HasColumnType("nvarchar(max)");
b.Property<int>("PinOrder")
.HasColumnType("int");
b.Property<bool>("Published")
.HasColumnType("bit");

View File

@ -60,5 +60,10 @@ namespace RMuseum.Models.Ganjoor
/// death year in lunar hijri
/// </summary>
public int DeathYearInLHijri { get; set; }
/// <summary>
/// Home page pin order (zero not pinned)
/// </summary>
public int PinOrder { get; set; }
}
}

View File

@ -5480,6 +5480,11 @@
death year in lunar hijri
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorPoet.PinOrder">
<summary>
Home page pin order (zero not pinned)
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorSiteBanner">
<summary>
ganjoor.net site banner