//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by a roslyn code generator.
//
//------------------------------------------------------------------------------
// ReSharper disable All
namespace MUnique.OpenMU.Persistence.EntityFramework.Model;
using System.ComponentModel.DataAnnotations.Schema;
using MUnique.OpenMU.Persistence;
///
/// The Entity Framework Core implementation of .
///
[Table(nameof(GameConfiguration), Schema = SchemaNames.Configuration)]
internal partial class GameConfiguration : MUnique.OpenMU.DataModel.Configuration.GameConfiguration, IIdentifiable
{
///
/// Gets or sets the identifier of this instance.
///
public Guid Id { get; set; }
///
/// Gets the raw collection of .
///
public ICollection RawJewelMixes { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection JewelMixes => base.JewelMixes ??= new CollectionAdapter(this.RawJewelMixes);
///
/// Gets the raw collection of .
///
public ICollection RawWarpList { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection WarpList => base.WarpList ??= new CollectionAdapter(this.RawWarpList);
///
/// Gets the raw collection of .
///
public ICollection RawDropItemGroups { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection DropItemGroups => base.DropItemGroups ??= new CollectionAdapter(this.RawDropItemGroups);
///
/// Gets the raw collection of .
///
public ICollection RawSkills { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection Skills => base.Skills ??= new CollectionAdapter(this.RawSkills);
///
/// Gets the raw collection of .
///
public ICollection RawCharacterClasses { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection CharacterClasses => base.CharacterClasses ??= new CollectionAdapter(this.RawCharacterClasses);
///
/// Gets the raw collection of .
///
public ICollection RawItems { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection Items => base.Items ??= new CollectionAdapter(this.RawItems);
///
/// Gets the raw collection of .
///
public ICollection RawItemLevelBonusTables { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemLevelBonusTables => base.ItemLevelBonusTables ??= new CollectionAdapter(this.RawItemLevelBonusTables);
///
/// Gets the raw collection of .
///
public ICollection RawItemSlotTypes { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemSlotTypes => base.ItemSlotTypes ??= new CollectionAdapter(this.RawItemSlotTypes);
///
/// Gets the raw collection of .
///
public ICollection RawItemOptions { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemOptions => base.ItemOptions ??= new CollectionAdapter(this.RawItemOptions);
///
/// Gets the raw collection of .
///
public ICollection RawItemOptionTypes { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemOptionTypes => base.ItemOptionTypes ??= new CollectionAdapter(this.RawItemOptionTypes);
///
/// Gets the raw collection of .
///
public ICollection RawItemSetGroups { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemSetGroups => base.ItemSetGroups ??= new CollectionAdapter(this.RawItemSetGroups);
///
/// Gets the raw collection of .
///
public ICollection RawItemOptionCombinationBonuses { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection ItemOptionCombinationBonuses => base.ItemOptionCombinationBonuses ??= new CollectionAdapter(this.RawItemOptionCombinationBonuses);
///
/// Gets the raw collection of .
///
public ICollection RawMaps { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection Maps => base.Maps ??= new CollectionAdapter(this.RawMaps);
///
/// Gets the raw collection of .
///
public ICollection RawMonsters { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection Monsters => base.Monsters ??= new CollectionAdapter(this.RawMonsters);
///
/// Gets the raw collection of .
///
public ICollection RawAttributes { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection Attributes => base.Attributes ??= new CollectionAdapter(this.RawAttributes);
///
/// Gets the raw collection of .
///
public ICollection RawMagicEffects { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection MagicEffects => base.MagicEffects ??= new CollectionAdapter(this.RawMagicEffects);
///
/// Gets the raw collection of .
///
public ICollection RawMasterSkillRoots { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection MasterSkillRoots => base.MasterSkillRoots ??= new CollectionAdapter(this.RawMasterSkillRoots);
///
/// Gets the raw collection of .
///
public ICollection RawGlobalAttributeCombinations { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection GlobalAttributeCombinations => base.GlobalAttributeCombinations ??= new CollectionAdapter(this.RawGlobalAttributeCombinations);
///
/// Gets the raw collection of .
///
public ICollection RawGlobalBaseAttributeValues { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection GlobalBaseAttributeValues => base.GlobalBaseAttributeValues ??= new CollectionAdapter(this.RawGlobalBaseAttributeValues);
///
/// Gets the raw collection of .
///
public ICollection RawPlugInConfigurations { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection PlugInConfigurations => base.PlugInConfigurations ??= new CollectionAdapter(this.RawPlugInConfigurations);
///
/// Gets the raw collection of .
///
public ICollection RawMiniGameDefinitions { get; } = new EntityFramework.List();
///
[NotMapped]
public override ICollection MiniGameDefinitions => base.MiniGameDefinitions ??= new CollectionAdapter(this.RawMiniGameDefinitions);
///
/// Gets or sets the identifier of .
///
public Guid? DuelConfigurationId { get; set; }
///
/// Gets the raw object of .
///
[ForeignKey(nameof(DuelConfigurationId))]
public DuelConfiguration RawDuelConfiguration
{
get => base.DuelConfiguration as DuelConfiguration;
set => base.DuelConfiguration = value;
}
///
[NotMapped]
public override MUnique.OpenMU.DataModel.Configuration.DuelConfiguration DuelConfiguration
{
get => base.DuelConfiguration;set
{
base.DuelConfiguration = value;
this.DuelConfigurationId = this.RawDuelConfiguration?.Id;
}
}
///
/// Gets or sets the identifier of .
///
public Guid? CastleSiegeConfigurationId { get; set; }
///
/// Gets the raw object of .
///
[ForeignKey(nameof(CastleSiegeConfigurationId))]
public CastleSiegeConfiguration RawCastleSiegeConfiguration
{
get => base.CastleSiegeConfiguration as CastleSiegeConfiguration;
set => base.CastleSiegeConfiguration = value;
}
///
[NotMapped]
public override MUnique.OpenMU.DataModel.Configuration.CastleSiegeConfiguration CastleSiegeConfiguration
{
get => base.CastleSiegeConfiguration;set
{
base.CastleSiegeConfiguration = value;
this.CastleSiegeConfigurationId = this.RawCastleSiegeConfiguration?.Id;
}
}
///
public override MUnique.OpenMU.DataModel.Configuration.GameConfiguration Clone(MUnique.OpenMU.DataModel.Configuration.GameConfiguration gameConfiguration)
{
var clone = new GameConfiguration();
clone.AssignValuesOf(this, gameConfiguration);
return clone;
}
///
public override void AssignValuesOf(MUnique.OpenMU.DataModel.Configuration.GameConfiguration other, MUnique.OpenMU.DataModel.Configuration.GameConfiguration gameConfiguration)
{
base.AssignValuesOf(other, gameConfiguration);
this.Id = other.GetId();
}
///
public override bool Equals(object obj)
{
var baseObject = obj as IIdentifiable;
if (baseObject != null)
{
return baseObject.Id == this.Id;
}
return base.Equals(obj);
}
///
public override int GetHashCode()
{
return this.Id.GetHashCode();
}
}