#224 renaming tables

This commit is contained in:
Hamid Reza Mohammadi 2021-10-21 20:32:46 +03:30
parent 827fa3501b
commit 2eee931392
8 changed files with 250 additions and 250 deletions

View File

@ -369,7 +369,7 @@ namespace RMuseum.DbContext
/// <summary>
/// ganjoor half centuries
/// </summary>
public DbSet<GanjoorHalfCentury> GanjoorHalfCenturies { get; set; }
public DbSet<GanjoorCentury> GanjoorCenturies { get; set; }
}
}

View File

@ -10,8 +10,8 @@ using RMuseum.DbContext;
namespace RMuseum.Migrations
{
[DbContext(typeof(RMuseumDbContext))]
[Migration("20211021153153_GanjoorHalfCenturies")]
partial class GanjoorHalfCenturies
[Migration("20211021165721_GanjoorCenturies")]
partial class GanjoorCenturies
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
@ -465,6 +465,58 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorCategories");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("EndYear")
.HasColumnType("int");
b.Property<int>("HalfCenturyOrder")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ShowInTimeLine")
.HasColumnType("bit");
b.Property<int>("StartYear")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("GanjoorCenturies");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int?>("GanjoorCenturyId")
.HasColumnType("int");
b.Property<int?>("PoetId")
.HasColumnType("int");
b.Property<int>("PoetOrder")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("GanjoorCenturyId");
b.HasIndex("PoetId");
b.ToTable("GanjoorCenturyPoet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b =>
{
b.Property<int>("Id")
@ -561,33 +613,6 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorReportedComments");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("EndYear")
.HasColumnType("int");
b.Property<int>("HalfCenturyOrder")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ShowInTimeLine")
.HasColumnType("bit");
b.Property<int>("StartYear")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("GanjoorHalfCenturies");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHealthCheckError", b =>
{
b.Property<int>("Id")
@ -829,31 +854,6 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorPageSnapshots");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int?>("GanjoorHalfCenturyId")
.HasColumnType("int");
b.Property<int?>("PoetId")
.HasColumnType("int");
b.Property<int>("PoetOrder")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("GanjoorHalfCenturyId");
b.HasIndex("PoetId");
b.ToTable("GanjoorPeriodPoet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b =>
{
b.Property<int>("Id")
@ -2606,6 +2606,19 @@ namespace RMuseum.Migrations
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null)
.WithMany("Poets")
.HasForeignKey("GanjoorCenturyId");
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet")
.WithMany()
.HasForeignKey("PoetId");
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorComment", "InReplyTo")
@ -2727,19 +2740,6 @@ namespace RMuseum.Migrations
b.Navigation("MadeObsoleteByUser");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorHalfCentury", null)
.WithMany("Poets")
.HasForeignKey("GanjoorHalfCenturyId");
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet")
.WithMany()
.HasForeignKey("PoetId");
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCat", "Cat")
@ -3234,7 +3234,7 @@ namespace RMuseum.Migrations
b.Navigation("Tags");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b =>
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
{
b.Navigation("Poets");
});

View File

@ -2,7 +2,7 @@
namespace RMuseum.Migrations
{
public partial class GanjoorHalfCenturies : Migration
public partial class GanjoorCenturies : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
@ -28,7 +28,7 @@ namespace RMuseum.Migrations
defaultValue: 0);
migrationBuilder.CreateTable(
name: "GanjoorHalfCenturies",
name: "GanjoorCenturies",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
@ -41,30 +41,30 @@ namespace RMuseum.Migrations
},
constraints: table =>
{
table.PrimaryKey("PK_GanjoorHalfCenturies", x => x.Id);
table.PrimaryKey("PK_GanjoorCenturies", x => x.Id);
});
migrationBuilder.CreateTable(
name: "GanjoorPeriodPoet",
name: "GanjoorCenturyPoet",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PoetOrder = table.Column<int>(type: "int", nullable: false),
PoetId = table.Column<int>(type: "int", nullable: true),
GanjoorHalfCenturyId = table.Column<int>(type: "int", nullable: true)
GanjoorCenturyId = table.Column<int>(type: "int", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_GanjoorPeriodPoet", x => x.Id);
table.PrimaryKey("PK_GanjoorCenturyPoet", x => x.Id);
table.ForeignKey(
name: "FK_GanjoorPeriodPoet_GanjoorHalfCenturies_GanjoorHalfCenturyId",
column: x => x.GanjoorHalfCenturyId,
principalTable: "GanjoorHalfCenturies",
name: "FK_GanjoorCenturyPoet_GanjoorCenturies_GanjoorCenturyId",
column: x => x.GanjoorCenturyId,
principalTable: "GanjoorCenturies",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_GanjoorPeriodPoet_GanjoorPoets_PoetId",
name: "FK_GanjoorCenturyPoet_GanjoorPoets_PoetId",
column: x => x.PoetId,
principalTable: "GanjoorPoets",
principalColumn: "Id",
@ -72,23 +72,23 @@ namespace RMuseum.Migrations
});
migrationBuilder.CreateIndex(
name: "IX_GanjoorPeriodPoet_GanjoorHalfCenturyId",
table: "GanjoorPeriodPoet",
column: "GanjoorHalfCenturyId");
name: "IX_GanjoorCenturyPoet_GanjoorCenturyId",
table: "GanjoorCenturyPoet",
column: "GanjoorCenturyId");
migrationBuilder.CreateIndex(
name: "IX_GanjoorPeriodPoet_PoetId",
table: "GanjoorPeriodPoet",
name: "IX_GanjoorCenturyPoet_PoetId",
table: "GanjoorCenturyPoet",
column: "PoetId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "GanjoorPeriodPoet");
name: "GanjoorCenturyPoet");
migrationBuilder.DropTable(
name: "GanjoorHalfCenturies");
name: "GanjoorCenturies");
migrationBuilder.DropColumn(
name: "BirthYearInLHijri",

View File

@ -463,6 +463,58 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorCategories");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("EndYear")
.HasColumnType("int");
b.Property<int>("HalfCenturyOrder")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ShowInTimeLine")
.HasColumnType("bit");
b.Property<int>("StartYear")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("GanjoorCenturies");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int?>("GanjoorCenturyId")
.HasColumnType("int");
b.Property<int?>("PoetId")
.HasColumnType("int");
b.Property<int>("PoetOrder")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("GanjoorCenturyId");
b.HasIndex("PoetId");
b.ToTable("GanjoorCenturyPoet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b =>
{
b.Property<int>("Id")
@ -559,33 +611,6 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorReportedComments");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("EndYear")
.HasColumnType("int");
b.Property<int>("HalfCenturyOrder")
.HasColumnType("int");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<bool>("ShowInTimeLine")
.HasColumnType("bit");
b.Property<int>("StartYear")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("GanjoorHalfCenturies");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHealthCheckError", b =>
{
b.Property<int>("Id")
@ -827,31 +852,6 @@ namespace RMuseum.Migrations
b.ToTable("GanjoorPageSnapshots");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int?>("GanjoorHalfCenturyId")
.HasColumnType("int");
b.Property<int?>("PoetId")
.HasColumnType("int");
b.Property<int>("PoetOrder")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("GanjoorHalfCenturyId");
b.HasIndex("PoetId");
b.ToTable("GanjoorPeriodPoet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b =>
{
b.Property<int>("Id")
@ -2604,6 +2604,19 @@ namespace RMuseum.Migrations
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCenturyPoet", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCentury", null)
.WithMany("Poets")
.HasForeignKey("GanjoorCenturyId");
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet")
.WithMany()
.HasForeignKey("PoetId");
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorComment", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorComment", "InReplyTo")
@ -2725,19 +2738,6 @@ namespace RMuseum.Migrations
b.Navigation("MadeObsoleteByUser");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPeriodPoet", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorHalfCentury", null)
.WithMany("Poets")
.HasForeignKey("GanjoorHalfCenturyId");
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoet", "Poet")
.WithMany()
.HasForeignKey("PoetId");
b.Navigation("Poet");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorPoem", b =>
{
b.HasOne("RMuseum.Models.Ganjoor.GanjoorCat", "Cat")
@ -3232,7 +3232,7 @@ namespace RMuseum.Migrations
b.Navigation("Tags");
});
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorHalfCentury", b =>
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorCentury", b =>
{
b.Navigation("Poets");
});

View File

@ -6,7 +6,7 @@ namespace RMuseum.Models.Ganjoor
/// <summary>
/// half century
/// </summary>
public class GanjoorHalfCentury
public class GanjoorCentury
{
/// <summary>
/// id
@ -41,7 +41,7 @@ namespace RMuseum.Models.Ganjoor
/// <summary>
/// poets
/// </summary>
public List<GanjoorPeriodPoet> Poets { get; set; }
public List<GanjoorCenturyPoet> Poets { get; set; }
}
}

View File

@ -3,7 +3,7 @@
/// <summary>
/// half century
/// </summary>
public class GanjoorPeriodPoet
public class GanjoorCenturyPoet
{
/// <summary>
/// id

View File

@ -2092,7 +2092,7 @@
ganjoor verse numbers
</summary>
</member>
<member name="P:RMuseum.DbContext.RMuseumDbContext.GanjoorHalfCenturies">
<member name="P:RMuseum.DbContext.RMuseumDbContext.GanjoorCenturies">
<summary>
ganjoor half centuries
</summary>
@ -4590,6 +4590,71 @@
sample: /hafez/ghazal
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorCentury">
<summary>
half century
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.Id">
<summary>
id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.Name">
<summary>
name
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.HalfCenturyOrder">
<summary>
order
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.StartYear">
<summary>
start
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.EndYear">
<summary>
end
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.ShowInTimeLine">
<summary>
show in time line
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCentury.Poets">
<summary>
poets
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorCenturyPoet">
<summary>
half century
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCenturyPoet.Id">
<summary>
id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCenturyPoet.PoetOrder">
<summary>
order
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCenturyPoet.PoetId">
<summary>
poet id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorCenturyPoet.Poet">
<summary>
poet
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorComment">
<summary>
Ganjoor Comment
@ -4732,46 +4797,6 @@
reported by user
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorHalfCentury">
<summary>
half century
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.Id">
<summary>
id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.Name">
<summary>
name
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.HalfCenturyOrder">
<summary>
order
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.StartYear">
<summary>
start
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.EndYear">
<summary>
end
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.ShowInTimeLine">
<summary>
show in time line
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorHalfCentury.Poets">
<summary>
poets
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorHealthCheckError">
<summary>
Ganjoor Page Health Check log
@ -5171,31 +5196,6 @@
Prosody and Statistics
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorPeriodPoet">
<summary>
half century
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorPeriodPoet.Id">
<summary>
id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorPeriodPoet.PoetOrder">
<summary>
order
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorPeriodPoet.PoetId">
<summary>
poet id
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorPeriodPoet.Poet">
<summary>
poet
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorPoem">
<summary>
Ganjoor Poem

View File

@ -22,15 +22,15 @@ namespace RMuseum.Services.Implementation
{
try
{
await _context.Database.ExecuteSqlRawAsync("DELETE FROM GanjoorPeriodPoet");
var oldOnes = await _context.GanjoorHalfCenturies.ToArrayAsync();
await _context.Database.ExecuteSqlRawAsync("DELETE FROM GanjoorCenturyPoet");
var oldOnes = await _context.GanjoorCenturies.ToArrayAsync();
_context.RemoveRange(oldOnes);
await _context.SaveChangesAsync();
var periods = new List<GanjoorHalfCentury>
var periods = new List<GanjoorCentury>
{
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 1,
Name = "قرن سوم",
@ -38,7 +38,7 @@ namespace RMuseum.Services.Implementation
EndYear = 300,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 2,
Name = "سوم و چهارم",
@ -46,7 +46,7 @@ namespace RMuseum.Services.Implementation
EndYear = 350,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 3,
Name = "قرن چهارم",
@ -54,7 +54,7 @@ namespace RMuseum.Services.Implementation
EndYear = 400,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 4,
Name = "چهارم و پنجم",
@ -62,7 +62,7 @@ namespace RMuseum.Services.Implementation
EndYear = 450,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 5,
Name = "قرن پنجم",
@ -70,7 +70,7 @@ namespace RMuseum.Services.Implementation
EndYear = 500,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 6,
Name = "پنجم و ششم",
@ -78,7 +78,7 @@ namespace RMuseum.Services.Implementation
EndYear = 550,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 7,
Name = "قرن ششم",
@ -86,7 +86,7 @@ namespace RMuseum.Services.Implementation
EndYear = 600,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 8,
Name = "ششم و هفتم",
@ -94,7 +94,7 @@ namespace RMuseum.Services.Implementation
EndYear = 650,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 9,
Name = "قرن هفتم",
@ -102,7 +102,7 @@ namespace RMuseum.Services.Implementation
EndYear = 700,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 10,
Name = "هفتم و هشتم",
@ -110,7 +110,7 @@ namespace RMuseum.Services.Implementation
EndYear = 750,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 11,
Name = "قرن هشتم",
@ -118,7 +118,7 @@ namespace RMuseum.Services.Implementation
EndYear = 800,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 12,
Name = "هشتم و نهم",
@ -126,7 +126,7 @@ namespace RMuseum.Services.Implementation
EndYear = 850,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 13,
Name = "قرن نهم",
@ -134,7 +134,7 @@ namespace RMuseum.Services.Implementation
EndYear = 900,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 14,
Name = "نهم و دهم",
@ -142,7 +142,7 @@ namespace RMuseum.Services.Implementation
EndYear = 950,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 15,
Name = "قرن دهم",
@ -150,7 +150,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1000,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 16,
Name = "دهم و یازدهم",
@ -158,7 +158,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1050,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 17,
Name = "قرن یازدهم",
@ -166,7 +166,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1100,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 18,
Name = "یازذهم و دوازدهم",
@ -174,7 +174,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1150,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 19,
Name = "قرن دوازدهم",
@ -182,7 +182,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1200,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 20,
Name = "دوازدهم و سیزدهم",
@ -190,7 +190,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1250,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 21,
Name = "قرن سیزدهم",
@ -198,7 +198,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1300,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 22,
Name = "سیزدهم و چهاردهم",
@ -206,7 +206,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1350,
ShowInTimeLine = false,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 23,
Name = "قرن چهاردهم",
@ -214,7 +214,7 @@ namespace RMuseum.Services.Implementation
EndYear = 1400,
ShowInTimeLine = true,
},
new GanjoorHalfCentury()
new GanjoorCentury()
{
HalfCenturyOrder = 24,
Name = "چهاردهم و پانزدهم",
@ -234,10 +234,10 @@ namespace RMuseum.Services.Implementation
if(period != null)
{
if (period.Poets == null)
period.Poets = new List<GanjoorPeriodPoet>();
period.Poets = new List<GanjoorCenturyPoet>();
period.Poets.Add
(
new GanjoorPeriodPoet()
new GanjoorCenturyPoet()
{
PoetOrder = period.Poets.Count,
PoetId = poet.Id