From 40fa17f41669d2b6cf5e20fd79c483e45036f662 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Fri, 29 Oct 2021 08:59:28 +0330 Subject: [PATCH] #233 adding geo location data to the poet model --- RMuseum/DbContext/RMuseumDbContext.cs | 5 +++ RMuseum/Models/Ganjoor/GanjoorPoet.cs | 30 +++++++++++++++ RMuseum/RMuseum.xml | 55 +++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) diff --git a/RMuseum/DbContext/RMuseumDbContext.cs b/RMuseum/DbContext/RMuseumDbContext.cs index 337d9090..f9df276e 100644 --- a/RMuseum/DbContext/RMuseumDbContext.cs +++ b/RMuseum/DbContext/RMuseumDbContext.cs @@ -371,5 +371,10 @@ namespace RMuseum.DbContext /// public DbSet GanjoorCenturies { get; set; } + /// + /// ganjoor cities + /// + public DbSet GanjoorGeoLocations { get; set; } + } } diff --git a/RMuseum/Models/Ganjoor/GanjoorPoet.cs b/RMuseum/Models/Ganjoor/GanjoorPoet.cs index dab34afc..d1776de0 100644 --- a/RMuseum/Models/Ganjoor/GanjoorPoet.cs +++ b/RMuseum/Models/Ganjoor/GanjoorPoet.cs @@ -65,5 +65,35 @@ namespace RMuseum.Models.Ganjoor /// Home page pin order (zero means not pinned) /// public int PinOrder { get; set; } + + /// + /// BirthYearInLHijri, for some poets it is only indicator of their century of birth and should not be relied as their valid birth date + /// + public bool ValidBirthDate { get; set; } + + /// + /// DeathYearInLHijri, for some poets it is only indicator of their century of death and should not be relied as their valid death date + /// + public bool ValidDeathDate { get; set; } + + /// + /// birth location id + /// + public int? BirthLocationId { get; set; } + + /// + /// birth location + /// + public virtual GanjoorGeoLocation BirthLocation { get; set; } + + /// + /// death location id + /// + public int? DeathLocationId { get; set; } + + /// + /// death location + /// + public virtual GanjoorGeoLocation DeathLocation { get; set; } } } diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index fcb76f98..18a70808 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -2103,6 +2103,11 @@ ganjoor half centuries + + + ganjoor cities + + donation expenditures @@ -4803,6 +4808,26 @@ reported by user + + + Geo Locations (Cities) referred by Ganjoor Metadata + + + + + id + + + + + name + + + + + geo location + + Ganjoor Page Health Check log @@ -5527,6 +5552,36 @@ Home page pin order (zero means not pinned) + + + for some poets it is only indicator of their century of birth and should not be reported back as their valid birth date + + + + + for some poets it is only indicator of their century of death and should not be reported back as their valid death date + + + + + birth location id + + + + + birth location + + + + + death location id + + + + + death location + + ganjoor.net site banner