// // 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(CastleSiegeZoneDefinition), Schema = SchemaNames.Configuration)] internal partial class CastleSiegeZoneDefinition : MUnique.OpenMU.DataModel.Configuration.CastleSiegeZoneDefinition, IIdentifiable { /// /// Gets or sets the identifier of this instance. /// public Guid Id { get; set; } /// public override MUnique.OpenMU.DataModel.Configuration.CastleSiegeZoneDefinition Clone(MUnique.OpenMU.DataModel.Configuration.GameConfiguration gameConfiguration) { var clone = new CastleSiegeZoneDefinition(); clone.AssignValuesOf(this, gameConfiguration); return clone; } /// public override void AssignValuesOf(MUnique.OpenMU.DataModel.Configuration.CastleSiegeZoneDefinition 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(); } }