public void Save(CharacterContext context) { if (!isDirty) { return; } var model = new CharacterPetFlair { Id = Owner, PetFlairId = Entry.Id }; context.Add(model); isDirty = false; }
/// <summary> /// Create a new <see cref="PetFlair"/> from existing <see cref="CharacterPetFlair"/> database model. /// </summary> public PetFlair(CharacterPetFlair model) { Owner = model.Id; Entry = GameTableManager.PetFlair.GetEntry(model.PetFlairId); }