1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

huge commit for advanced stats feature.

broke data out into its own library.
may be breaking changes with existing plugins
This commit is contained in:
RaidMax
2021-03-22 11:09:25 -05:00
parent 267b045883
commit 434392a7e4
505 changed files with 13671 additions and 3271 deletions

View File

@ -0,0 +1,35 @@
using Data.Abstractions;
using Stats.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Data.Models.Client.Stats.Reference
{
public class EFWeaponAttachmentCombo : AuditFields, IUniqueId
{
[Key]
public int WeaponAttachmentComboId { get; set; }
[Required]
public Models.Reference.Game Game { get; set; }
[Required]
public int Attachment1Id { get; set; }
[ForeignKey(nameof(Attachment1Id))]
public virtual EFWeaponAttachment Attachment1 { get; set; }
public int? Attachment2Id { get; set; }
[ForeignKey(nameof(Attachment2Id))]
public virtual EFWeaponAttachment Attachment2 { get; set; }
public int? Attachment3Id { get; set; }
[ForeignKey(nameof(Attachment3Id))]
public virtual EFWeaponAttachment Attachment3 { get; set; }
public long Id => WeaponAttachmentComboId;
public string Value => $"{Attachment1Id}{Attachment2Id}{Attachment3Id}";
}
}