docs: #292 removing an unusable field (Language) from GanjoorVerse

This commit is contained in:
Hamid Reza Mohammadi 2022-03-11 18:51:36 +03:30
parent 40116673cf
commit 40761ed3b1
8 changed files with 7 additions and 45 deletions

View File

@ -12,14 +12,14 @@ using RMuseum.DbContext;
namespace RMuseum.Migrations
{
[DbContext(typeof(RMuseumDbContext))]
[Migration("20220309160648_MultipleNewFields")]
partial class MultipleNewFields
[Migration("20220311151558_GCatTOCStyle")]
partial class GCatTOCStyle
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.2")
.HasAnnotation("ProductVersion", "6.0.3")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
@ -1460,9 +1460,6 @@ namespace RMuseum.Migrations
b.Property<int?>("CoupletIndex")
.HasColumnType("int");
b.Property<string>("Language")
.HasColumnType("nvarchar(max)");
b.Property<int>("PoemId")
.HasColumnType("int");

View File

@ -4,16 +4,10 @@
namespace RMuseum.Migrations
{
public partial class MultipleNewFields : Migration
public partial class GCatTOCStyle : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Language",
table: "GanjoorVerses",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Language",
table: "GanjoorPoems",
@ -32,7 +26,7 @@ namespace RMuseum.Migrations
table: "GanjoorPoems",
type: "bit",
nullable: false,
defaultValue: true);
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "NoIndex",
@ -78,7 +72,7 @@ namespace RMuseum.Migrations
table: "GanjoorCategories",
type: "bit",
nullable: false,
defaultValue: true);
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "TableOfContentsStyle",
@ -90,10 +84,6 @@ namespace RMuseum.Migrations
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Language",
table: "GanjoorVerses");
migrationBuilder.DropColumn(
name: "Language",
table: "GanjoorPoems");

View File

@ -17,7 +17,7 @@ namespace RMuseum.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.2")
.HasAnnotation("ProductVersion", "6.0.3")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
@ -1458,9 +1458,6 @@ namespace RMuseum.Migrations
b.Property<int?>("CoupletIndex")
.HasColumnType("int");
b.Property<string>("Language")
.HasColumnType("nvarchar(max)");
b.Property<int>("PoemId")
.HasColumnType("int");

View File

@ -40,11 +40,6 @@
/// </summary>
public int? CoupletIndex { get; set; }
/// <summary>
/// language (this is intended to affect html page encodings and not determine actuallly accents and ....), so it is unusable for verses I guess
/// </summary>
public string Language { get; set; }
public override string ToString()
{
return Text;

View File

@ -31,11 +31,6 @@
/// </summary>
public string Text { get; set; }
/// <summary>
/// language
/// </summary>
public string Language { get; set; }
public override string ToString()
{
return Text;

View File

@ -7028,11 +7028,6 @@
couplet index
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorVerse.Language">
<summary>
language (this is intended to affect html page encodings and not determine actuallly accents and ....), so it is unusable for verses I guess
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorVerseNumber.Id">
<summary>
id
@ -8605,11 +8600,6 @@
text
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorVerseViewModel.Language">
<summary>
language
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.ViewModels.PoemMusicTrackViewModel">
<summary>
Ganjoor Poem related music track model

View File

@ -1539,7 +1539,6 @@ namespace RMuseum.Services.Implementation
CoupletIndex = v.CoupletIndex,
VersePosition = v.VersePosition,
Text = v.Text,
Language = v.Language,
}
).AsNoTracking().ToArrayAsync();
};

View File

@ -248,7 +248,6 @@ namespace RMuseum.Services.Implementation
CoupletIndex = pv.CoupletIndex,
VOrder = pv.VOrder,
Text = pv.Text,
Language = pv.Language,
}
).Single(),
TText = v.TText