Немного отчистки кода и общий тип
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
using System;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Pf2eDataScrapper.Model.Enum;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Action
|
public partial class Action : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using System;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Pf2eDataScrapper.Model.Enum;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Ancestry
|
public partial class Ancestry : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class AncestryBoost
|
public partial class AncestryBoost
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class AncestryItem
|
public partial class AncestryItem
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class AncestryLanguage
|
public partial class AncestryLanguage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Background
|
public partial class Background : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class BackgroundBoost
|
public partial class BackgroundBoost
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class BackgroundItem
|
public partial class BackgroundItem
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class BackgroundSkill
|
public partial class BackgroundSkill
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class CampaignFeature
|
public partial class CampaignFeature : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Class
|
public partial class Class : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class ClassKeyAbility
|
public partial class ClassKeyAbility
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class ClassProgression
|
public partial class ClassProgression
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class ClassTraining
|
public partial class ClassTraining
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Condition
|
public partial class Condition : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; } = -1;
|
public int Id { get; set; } = -1;
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Deity
|
public partial class Deity : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class DeityAttribute
|
public partial class DeityAttribute
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class DeityDomain
|
public partial class DeityDomain
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class DeitySpell
|
public partial class DeitySpell
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class DeityWeapon
|
public partial class DeityWeapon
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
public partial class Entity : IEntity
|
||||||
|
|
||||||
public partial class Entity
|
|
||||||
{
|
{
|
||||||
public int Id { get; set; } = -1;
|
public int Id { get; set; } = -1;
|
||||||
|
|
||||||
@@ -21,17 +18,5 @@ public partial class Entity
|
|||||||
|
|
||||||
public bool? IsChecked { get; set; }
|
public bool? IsChecked { get; set; }
|
||||||
|
|
||||||
public virtual ICollection<AncestryItem> AncestryItems { get; set; } = new List<AncestryItem>();
|
|
||||||
|
|
||||||
public virtual ICollection<BackgroundItem> BackgroundItems { get; set; } = new List<BackgroundItem>();
|
|
||||||
|
|
||||||
public virtual ICollection<ClassProgression> ClassProgressions { get; set; } = new List<ClassProgression>();
|
|
||||||
|
|
||||||
public virtual ICollection<EntityAlias> EntityAliases { get; set; } = new List<EntityAlias>();
|
|
||||||
|
|
||||||
public virtual ICollection<EntityExternal> EntityExternals { get; set; } = new List<EntityExternal>();
|
|
||||||
|
|
||||||
public virtual Frequency? Frequency { get; set; }
|
|
||||||
|
|
||||||
public virtual ICollection<Trait> Traits { get; set; } = new List<Trait>();
|
public virtual ICollection<Trait> Traits { get; set; } = new List<Trait>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class EntityAlias
|
public partial class EntityAlias
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class EntityExternal
|
public partial class EntityExternal
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class EntityKeyword
|
public partial class EntityKeyword
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class EntitySource
|
public partial class EntitySource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class ExternalTarget
|
public partial class ExternalTarget
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model.Enum;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Feat
|
public partial class Feat : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class FeatPrerequisite
|
public partial class FeatPrerequisite
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Frequency
|
public partial class Frequency
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
using Pf2eDataScrapper.Model;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Pf2eDataScrapper.Model.Enum;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Heritage
|
public partial class Heritage : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
namespace Pf2eDataScrapper.Model
|
||||||
|
{
|
||||||
|
internal interface IEntity
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string Img { get; set; }
|
||||||
|
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
public string? DescriptionGm { get; set; }
|
||||||
|
|
||||||
|
public string Slug { get; set; }
|
||||||
|
|
||||||
|
public bool? IsTranslated { get; set; }
|
||||||
|
|
||||||
|
public bool? IsChecked { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Keyword
|
public partial class Keyword
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class KeywordAlias
|
public partial class KeywordAlias
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Language
|
public partial class Language
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Source
|
public partial class Source
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
using System;
|
using Pf2eDataScrapper.Model.Enum;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Pf2eDataScrapper.Model.Enum;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
namespace Pf2eDataScrapper.Model;
|
||||||
|
|
||||||
public partial class Spell
|
public partial class Spell : IEntity
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class SpellArea
|
public partial class SpellArea
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class SpellDamage
|
public partial class SpellDamage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class SpellDefense
|
public partial class SpellDefense
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class SpellRitual
|
public partial class SpellRitual
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Training
|
public partial class Training
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Pf2eDataScrapper.Model;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Pf2eDataScrapper.Model;
|
|
||||||
|
|
||||||
public partial class Trait
|
public partial class Trait
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user